wordpress tutorial, remove first image from post wordpress. In many wordpress old site they used the first image as post or featured image. Here solution. while showing the single post they not want to show the first image which is uploaded.
How to remove first image from post wordpress
Using following code you can remove the first image from wordpress post. Please put following code in to functions.php file (you will find this file in your theme folder)
For without refresh the data from home page if you want to show the pages and pagination in wordpress blog than you can use the following code for add ajax pagination in wordpress blog.
add ajax pagination in wordpress blog
With the help of jquery you can easily add the pagination wordpress blog site. You just need to add the following code into header.php file.
[viral-lock message=”Source 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.”]
<!--?<span class="hiddenSpellError" pre="" data-mce-bogus="1"-->php wp_enqueue_script('jquery'); ?>
<script>
jQuery(document).ready(function(){
// ajax pagination
jQuery('#wp_pagination a').live('click', function(){ // if not using wp_pagination, change this to correct ID
var link = jQuery(this).attr('href');
// #main is the ID of the outer div wrapping your posts
jQuery('#main-container').html('<div><h2>Loading...</h2></div>');
// #entries is the ID of the inner div wrapping your posts
jQuery('#main-container').load(link+' #entries')
});
}); // end ready function
</script>
[/viral-lock]
just put above code in header.php file in head section. Just make sure that you are putting above code after wp_head function.
If you are not wordpress developer then dont use following code and If you are facing any issue then write to me on support@purabtech.in
WordPress tutorial, how to install wordpress on linux web server. Through Cpanal or downloading the zip from wordpress site and doing normal installation. But some times If you have VPS or your own linux server then you want to know about how to do the wordpress installation easily on Linux box.
how to install wordpress on linux web server
Just follow My steps:
If you have shell access to your web server, and are comfortable using console-based tools, you may wish to download WordPress directly to your web server using wget (or lynx or another console-based web browser) if you want to avoid FTPing:
wget http://wordpress.org/latest.tar.gz
Then unzip the package using: tar -xzvf latest.tar.gz
The WordPress package will extract into a folder called wordpress in the same directory that you downloaded latest.tar.gz.
Then Use the following Command.
#mv WORDPRESS YOURDOMAIN NAME
Than Open your apache configuration file and put following code in that file
Open your site in browser and do the installtion. But dont forget to create mysql database put correct information in wp-config.php file about database and username and password.
You are ready to go with your wordpress instillation with linux command prompt. This way you can do the local installation of wordpress on linux box.
WordPress tutorial, How to add content after wordpress post. For unique identity of your blog you need to the some common words in every posts. If you want add some default text in wordpress editor.
How to add content after wordpress post editor
you can add following code in functions.php file.
add_filter( 'default_content', 'add_subscribe_in_editor_content' );
function add_subscribe_in_editor_content( $content ) {
$content = "If you enjoyed this post, make sure to subscribe to <a href='http://feeds2.feedburner.com/wordpressapi' target='_blank'>my rss feed</a>.";
return $content;
}
using above code subscribe code will be added in wordpress editor.
Here is some very useful articles which is useful for modify the wordpress editor.
WordPress tutorial, add different background image to each wordpress posts. You can change the background images for each wordpress post or change color. you can change the background color also. Some times this can be doable through CSS also. But here I am going to give you very simple technique.
add different background image to each wordpress posts
Following code you just need to place in your single.php file.
if(is_single('17')){
// When Post 17 (ID) is being displayed.
echo "<style>
body{
background: #000 url(images/bgbody.jpg) top center no-repeat;
}</style>";
}
This way you can add the different background image to each wordperss post.
When I started developing the wordpress theme I was worried about where to submit the wordpress theme. I already developed many wordpress plugins but that plugins I submitted to wordpress plugin site. If you are wp theme developer and you want to publish your theme on multiple sites them here is list of URLs where you can submit free wordpress themes.
After doing googling I found some site where I can submit my wordpress theme and then I can get more traffic for my wordpress themes.
You can submit your wordpress theme to our site. Please send email to our team with theme screenshots and description. You need to send demo URL and download link for your wordpress theme. We will publish your wordpress theme on our showcase page.
You just need send email to our team on wordpressapi@gmail.com
Here I created the list websites where you need to submit your wordpress theme:
[viral-lock message=”Lists are 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.”]
For developers wordpress moving site to new server is daily job. wp migration is easy with mysql query. Here is useful mysql queries for wordpress migration. This mysql query are very useful for moving wordpress data to new server.
Note: before executing following queries, first take backup of wordpress database first. it is very important for safety and backup purpose. I recommend, always take database backup while doing any database operation. Taking database backup is good practice.
When you want to change your domain name for wordpress site. You need to first take backup of your file system and mysql database. Make sure that backup is completely taken. Verify with any wordpress developer. Then only you start the migration. For wordpress domain migration following mysql queries are required.
mysql queries for wordpress migration
I already written detail article for this. You should read following article.
Many people want to show there pdf files in wordpress blog. PDF is really popular format for showing the document with graphics and text and design and graphs. Without loosing the quality of text and graphics if we need to show the content then PDF is really nice format.
pdf in wordpress
In business world for presentation purpose all people mostly use the PDF document. Some wp developers asked about showing the pdf in wordpress.
For without any issue if you want to show the PDF document then you need to just open functions.php file and put following code in that file.
Following code I written for creating the shortcode in wordpress
Note: Upload the PDF file to your wordpress and then get the path of PDF file and then put above lines in article.
Change the path as you required.
Above code will create pdf link for your pdf document in your site.
If you does not want to create PDF link in your site and you want to show the pdf doc in your site then use following code.
We are looking for pdf in wordpress post, wordpress pdf tutorial, wordpress tutorial, wordpress documentation pdf, wordpress ebook pdf, wordpress book, wordpress ppt, wordpress tutorial for beginners this for wordpress. Here we can add the pdf support using my code in your wordpress sites.