Displaying the feed burner reader count is nice idea for bloggers. This way can show your blog readers to other blog viewers.
For seo purpose displaying the feed burner reader count is very nice.
Display FeedBurner Reader count in wordpress blog
You can your following code in your wordpress theme file.
How to create wordpress widget plugin, In this article, given full code and with explanation. For creating wordpress widget you just need use our code. In many wordpress themes we want to create the wordpress widget. For creating the wordpress widget you just need to put following code in functions.php file.
How to create wordpress widget plugin
This functions.php file you can find in wordpress theme folder.
class My_Widget extends WP_Widget {
function My_Widget() {
parent::WP_Widget(false, 'Our Test Widget');
}
function form($instance) {
// outputs the options form on admin
}
function update($new_instance, $old_instance) {
// processes widget options to be saved
return $new_instance;
}
function widget($args, $instance) {
// outputs the content of the widget
}
}
register_widget('My_Widget');
Many people want to upload big size media in wordpress. Now with current version you can upload 10 mb file in wordpress.
If you want to increase upload file size limit in wordpress then you should make some changes in your wordpress code. We briefly explained same in article.
increase upload file size limit in wordpress
First option you need to open your functions.php file and put following code in that file.
Note: Here with this code you can upload the upto 50 mb file to your wordpress website.
disable wordpress post revisions and increase wordpress performance. For improving the WordPress website or blog performance you need use following method.
WordPress saves the post revisions after every 2 min. That takes so much mysql storage.
To save MySQL storage, some WordPress user will be happy using this method, this method is Disable WordPress Post Revision.
how to disable wordpress post revisions
Why we need disabled this featured?
It’ because WordPress created such as dummy data revision and this one make our table sized increased. And if you have limited space, this is bad idea, and of course disable Post Revision also made your WordPress running faster.
Open your wp-config.php file and put the following code in that file. If you are not wordpress developer then dont use following code. Please consult with any wordpress developer for this code.
I faced very complex issue when my post get published. That post copied from other sites. Due to some wordpress plugin that is happening. wp-matic and wp-robots wordpress plugins are very bad which are stilling the other site blog and content.
Add Text to RSS in wordpress Post Title
Prevent the coping your content you should use my method. This method will add the additional text in your title so your wordpress posts will became more secure.
If you are wordpress developer then only use following code. Open your functions.php file from your theme and put following code in that file.
function wordpressapi_rss_title($content) {
global $wp_query;
$postid = $wp_query->post->ID;
$gpost = get_post_meta($postid, 'guest_post', true);
$spost = get_post_meta($postid, 'sponsored_post', true);
$content = 'Post by WordPressapi.com - '.$content;
return $content;
}
add_filter('the_title_rss', 'wordpressapi_rss_title');
This code will add the custom text in your title. For more information you can search in my blog
https://purabtech.in
In wordpress api we having the the_excerpt method for showing the short description from wordpress post.
On WordPress 2.9 there are new featured that we can added on the_excerpt(), one of them is change the excerpt length.
Modify wordpress Custom excerpt length
For Modify wordpress Custom excerpt length we need use the filter for modify the wordpress excerpt length. Use our custom code and put in functions.php file
For changing the length of excerpt we need use the filter for modify the wordpress excerpt length.
We only needed to put some function on our functions.php themes file and added some hook to call this functions.
show author information on each wordpress post is really good habit in wordpress post. So reader will know information writer who is writing the article. Many people like this information and they really read the information about author.
how to show author information on each wordpress post
For showing the author information you need put following code in the functions.php file show after your post content the author information will displayed to reader.
Answered wordpress question, where to put google analytics code in wordpress blog. Google analytics service is required in all the wordpress websites. For putting goolge analytics code in wordpress theme.
where to put google analytics code in wordpress blog
You can use the following code.
Open your functions.php file from wordpress theme folder and put following code in that file. You just need to put your google analytics code instead of my code.
<?php
add_action('wp_footer', 'googleanalytics');
function googleanalytics() { ?>
// Paste your Google Analytics code here
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12453889-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php } ?>
When you run the wordpress blog there must be many external links would be created by others. which are not good for your blog. Some sites may be only using your wordpress images by your images links.
Prevent external requests for your WordPress
For Prevent external requests for your WordPress blog you need to use simple trick. WordPress api is given this facility to prevent the external request.
To do so, open your wp-config.php file and copy paste the following code:
define('WP_HTTP_BLOCK_EXTERNAL', true);
It will block external requests from that time on. Though, some plugins need the external request to work properly. If you experience problems, you can define a whitelist by pasting the code below into wp-config.php. Don’t forget to replace my url by the one needed by the plugin.
define('WP_ACCESSIBLE_HOSTS', 'purabtech.in');
if you are still having any issue then please contact to me.
We all know what is favicon logo. WordPress tutorial, how to add a favicon to your wordpress blog. In wordpress theme you can easily add the favicon logo using following code and put in functions.php file
how to add a favicon to your wordpress blog
you just need to open your functions.php file and put following code in that file.