Fixing the Read More Tag Problem in WordPress Static Pages

Posted on July 29th, 2011 by in Themes | 0 Comments  
Fixing the Read More Tag Problem in WordPress Static Pages

WordPress has two ways of showing excerpts in a blog. One is by using the_excerpt() tag in your themes, and the other method is by using the more tag. The more tag allows you to specify where the cut off point is in a post while writing a post which makes it easy for the editor and allow you to show teaser content and such. However the more tag is used only on the home page which shows the latest…

Continue Reading »

How to Display a WordPress Post only if it has a specific Custom Field

Posted on July 1st, 2011 by in Themes | 4 Comments  
How to Display a WordPress Post only if it has a specific Custom Field

Recently one of our users asked us how to display WordPress posts only if a specific custom field was present. After replying back with the answer, we thought it would best if we share with everyone else, so the larger community can benefit from it as well. You need to have a fair understanding of how WordPress loops work because we will call these parameters in a WordPress query. The example code below will only show posts that have a…

Continue Reading »

How to Prevent Disqus from overriding your WordPress Comment Count

Posted on June 23rd, 2011 by in Themes | 7 Comments  
How to Prevent Disqus from overriding your WordPress Comment Count

Disqus, a comment platform, tends to go out and change the comments number hook for WordPress. This may end up causing your theme to show the text “View Comments” instead of the actual comment count that you want it to show. The reason why Disqus tries to replace the comment count shown by WordPress is that it will be out of sync with the actual comment count on many occasions. So by having these replacement settings, your comment counts should…

Continue Reading »

How to Add Facebook Open Graph Meta Data in WordPress Themes

Posted on May 6th, 2011 by in Themes | 118 Comments  
How to Add Facebook Open Graph Meta Data in WordPress Themes

We shared with you how to add the facebook like button in WordPress. Then we wrote about how to add the facebook send button in WordPress. Now usually, Facebook is really smart in pulling in the right data for your posts when they are shared on Facebook. However recently, we have been hearing reports of Facebook not pulling the right thumbnail image when someone clicks Like, not pulling the right page title, etc. Well in this article, we will share…

Continue Reading »

How to Change Font Size onClick in WordPress with JavaScript

Posted on April 27th, 2011 by in Themes | 3 Comments  
How to Change Font Size onClick in WordPress with JavaScript

Have you ever come across a site or blog that lets their visitors change the font size from some +/- button in the sidebar? Normally, you should never have to add this feature because all major browsers have the zoom in/zoom out buttons, but there are still a good number of users who are not familiar with that zoom feature. Well in this article, we will show you how to give your users the ability change the font size in…

Continue Reading »
Tweets about us: