From wordpres 2.9 version we got the featured image option in wordpress. We have given code to add custom thumbnail size to wordpress themes. Means you can relate the image to wordpress post without showing in post.
how to add custom thumbnail size to wordpress
If you are using the wordpress 2.9.2 or greater version then this feature is available in your wordpress but you need to enable this feature in your worpdress by using following function.
open your functions.php file and put following code in that file for enable the featured post feature in your wordpress
add_theme_support( 'post-thumbnails' );
By default, WordPress gives you some image sizes when you upload an image. These image sizes are:
* Thumbnail
* Medium
* Large
* Full (the image you uploaded)
For showing the the featured image in your post you can use the following code
if ( has_post_thumbnail() )
the_post_thumbnail( 'thumbnail' ); // for showing the thubnail.
the_post_thumbnail( 'medium' ); // for showing the medinum size thubnail image
the_post_thumbnail( 'full' ); // for showing the full size thubnail image
If you want to only show the specific image size in featured thubnail then use the following code.
For each wordpress theme developer the bloginfo() function is very useful. If you are not used the bloginfo function then use the bloginfo function. There is great help is provided wordpress api. In every wordpress theme we need to use the bloginfo method. bloginfo() function is useful. If you not used bloginfo function than use bloginfo function. Every theme we need to use bloginfo in wordpress theme.
How to use bloginfo in wordpress theme
Displays information about your blog, mostly gathered from the information you supply in your User Profile and General Options from the WordPress Administration panel.
people are searching 3 column themes. I found professional three column wordpress themes and I made a very nice and unique list of wordpress themes.
professional three column wordpress themes
Many people are sometimes searching for 3 column wordpress themes. I found professional 3 columns worpdress themes and I made a very nice list of wordpress themes. In this post you can view demo and for download theme you’ve to click on image of theme. So enjoy them and don’t forget to share! Thanks.
wp-pagenavi is most popular. wordpress pagination style without wordpress plugin, We need to install wp-pagenavi wordpress plugin for pagination styling. When we think wordpress pagination style then first thing came in mind which is. We need to install wp-pagenavi wordpress plugin for pagination styling. There are multiple pagination plugins available for pagination styling but wp-pagenavi is most popular.
wordpress pagination style without wordpress plugin
I always recommend wordpress theme developers to not to use the wordpress plugins as much possible because any wordpress plugin will install the extra unuseful code also.
Here in this article I am giving you the example about wordpress pagination without using any wordpress plugin.
Just open your functions.php file and put following code.
When you put some URL and email address you need to manually add the link URL to that text. This action always takes the some time of wordpress blogger. WordPress has facility to add the links to your URL and email address automatically.
convert plain text URI to HTML links in wordpress
This facility is available in wordpress since wordpress 2.7 version but many wordpress theme and plugin developers never used this functionality.
WordPress provides the make_clickable() function for convert plain text URI to HTML links. This function able to convert URI, www, ftp, and email addresses. Finishes by fixing links within links. You just need to pass the string parameter to this method.
More detail information you can find in following file.
wp-includes/formatting.php.
You can use this method in your functions.php file also. Use the following code.
add_filter('the_content', 'make_clickable');
By using this code you are able to covert the URI, www, ftp, and email addresses in to link.
If you are having any issues or question about make_clickable method then please write to me.
Every wordpress site is need to contact us page for there website or blog. All the people use the wordpress plugin for creating the contact us page. When you install the wordpress plugin that will install some extra code to your wordpress site. After using wordpress plugin you need some customization in that plugin due to UI. You need R&D time and development time. Code for contact us page without plugin.
contact us page without plugin
In this article I will show how you can create the contact us page with out any wordpress plugin. Using following code you can create the contact us form very easily.
First create contact-us.php page in your wordpress theme folder and put following code in that file.
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
Then go to your wordpress admin panel. Create page called contact us. In Right side panel you will find the “page attribute” section. From template drop down choose the Contact Us option. and create the contact us page.
WordPress uses the wp_mail() function for sending the email. all wordpress plugin also use the wp_mail() function for sending the email.
If you are having issues with sending the email with this function then you should use the different SMTP mail server for sending mail.
For sending email through SMTP in detail you should check the following article.
With this code you can write your own CSS for styling the contact form as per your wordpress theme. If you are having any issues or question about this script then please write to me.
All wordpress websites has requirement to add the contact form in there website. We always searching for wordpress contact form code, wordpress simple contact form, wordpress contact form with captcha, wordpress default contact form, wordpress contact form without plugin, wordpress contact form not sending email, wordpress custom contact form, best wordpress contact form solution. We can easily add the contact form without using any wordpress plugin very easily. You can use the my code snippet in your wordpress theme and you will be able to add the wordpress contact form.
Code for File upload with meta box in wordpress using custom post type using meta boxes in wordpress. From wordpress 3.0 version wordpress introduced the custom_post_type function. Many people want to attach the file field with add_meta_box function. In this tutorial I will tell you how to upload file with custom meta box and post type. I tested above code with new wordpress versions 3.9. Still code is working fine.
Code for File upload with meta box in wordpress using custom post type using meta boxes in wordpress.
In this tutorial I will show you how to create the custom post type and add custom meta boxes to that post type and upload file with custom meta box.
After digging into wordpress files and functions I created following code. Just open your functions.php file and put following code in that file for creating custom post type.
For uploading the file through custom meta box use the following code. Following code will add the file field to custom meta box and you are able to upload file or image to wordpress and upload file attachment to you custom post. Following code is very helpful to many wordpress theme and plugin developer. If you are having any issues or trouble using code then get back to me.
For Uploading the file your post form need to add the enctype=”multipart/form-data” type to your form. Just use the following code in your functions.php file.
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
From wordpress 3.0 version release wordpress gives the facility to add a custom post type functionality. With custom post type wordpress is became more powerful and expendable and more advanced We given info about, How to use custom post type in wordpress.
How to use custom post type in wordpress
WordPress recognized the need to people and industry and they introduced the custom post type. In this tutorial I will tell you how to use the custom post type very effectively.
Adding Custom post type is very easy. Using theme or plugin file you can add the custom post types in wordpress admin area.
Here I am going to give you example using wordpress theme files. Open you functions.php file and copy paste the following code in that file.
The function register_post_type() accepts two arguments: the name we want to give our post type, and a list of arguments used to create that post type, which we put in an array called $args.
Using above code that code will add the product post type to wordpress panel.
Now you can add the meta fields to custom post type. Use the following code in file for add the meta fields. Custom meta fields function is available from quite some time. add_meta_box() function is very useful to adding custom fields to wordpress post.
Using following code you can see the product information in edit product page and you can able to see the all information in for edit. Admin will know which fields are available to edit.
Using custom post type and add meta tag you can develop very nice applications. Now I am going to show you how you can extract the custom posts in wordpress frontend.
Using wp_query you can easily extract product posts. In any category page or conditionally you can use following code.
Or you can create the custom theme page using following code. Just create product.php page in your wordpress theme folder.Put following code in that file.
From wordpress 3.0, added new function to control the background image. For your theme if you want to add custom background image support to wordpress theme. From wordpress 3.0 release wordpress added new function to control the background color and image. For your theme if you want to add the background functionality then you need to very simple code in your functions.php file which you find in your wordpress theme folder.
Add custom background image support to wordpress
Open functions.php file and just copy paste the code.
add_custom_background();
For enabling the background for theme you need to open header.php file and just copy paste following code in the file.
<body class="<?php body_class() ?>">
For changing the background login to wordpress admin panel and goto appearance tab and click on background tab. From here you can able to change to background image or color.
In this article I will tell most famous and downloaded wordpress themes. Some of worpdress themes are so much popular and highly used by the blogger and Some wordpress themes are downloaded record time.
Most famous wordpress themes
In article we will tell Most famous wordpress themes and downloaded wordpress themes. Some of worpdress themes are so much popular and highly used by users
Here are some very famous wordpress themes among wordpress users and following wordpress themes are downloaded mostly and all the time.