PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Remove Ads for Registered Users or Admin on WordPress Blog

While applying modifications online at your WordPress blog sometimes you have to re-re-refresh the blog to view quick changes. Well! you are running a blog, so you have Adsense or other Ads code too. You do not want to get banned from adevrtising companies. Right?

While you are modifying the code, so you will be logged in. We can hide the code when admin user is still in session or when he is logged in, code will not be displayed.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Remove Comments Section From Your WordPress Blog

Comments are very important part of a blog. Some developers use WordPress as their primary CMS to build websites and sometimes client do not need comments section at all, because he needs a website and not a blog. Comments section can be removed from your blog in a very simple way.

Just edit your single.php file from your theme.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Insert Adsense After the First Post in Your WordPress Blog

Adsense advertisment is very popular among bloggers. Many like to display ads on their homepage. Why not after the first post? Here is a very easy way to do so by using a simple php variable as a counter.

The only thing we need is a simple php variable (here named $count) which will count how many posts are listed. If we just listed the first post, we will display the Adsense code.

Here’s the code. Paste it on your index.php file, instead of your WP loop.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Redirect Ugly Permalink to Postname

Most of the blogs, even popular blogs have their permalink structure like:

http://www.yourblog.com/year/month/day/post-name/

WordPress Offers following permalink structures:

http://www.yourblog.com/?p=123 (Default)
http://www.yourblog.com/2008/11/10/sample-post/ (year/month/day/postname)
http://www.yourblog.com/2008/11/sample-post/ (year/month/postname)
http://www.yourblog.com/archives/123 (numeric)
and custom permalink structure

The recommended one by SEO experts is following:

http://www.yourblog.com/sample-post/

Which can be achieved by putting /%postname%/ in custom permalink box from your admin area under permalinks.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Optimize Blog Post Title Tag For SEO

From SEO point of view, the title tag is one of the most important tags of webpage. The title appears as a link in search engines results and social bookmarking sites. We all download free WordPress themes and use. Most WordPress themes display the title tag in a non-optimized way. Here We shall customize this to obtain SEO-friendly and logical title tag for our blog.

Let’s modify the way your WordPress theme displays the title tag at different parts of your blog.

Read the rest of this entry »

Tags: ,
Posted in: Hacks, WordPress
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment


Related Posts




  Subscribe Via RSS
  Subscribe Via Email