wordpress logo

Loading all WordPress posts having or not having a custom meta field

wordpress logo

In a scenario one would like to create a custom meta key value pair for a post and save some value into it. Assume of an existing blog with hundred of posts which you want to add a custom field. Also assume a case in which you can only edit one post at a time and enter custom meta key value one by one. Continue reading

wordpress logo

Controlling rel canonical tag in WordPress

wordpress logo

I used a forum plugin in wordpress. This plugin provides a shortcode which is placed on a page. Once place this single page is used to shows forum home page, forum category pages and topics pages as well. For the sake of SEO i didn’t want the canonical tag e.g. <link rel=”canonical” href=”http://my-website.com/section” /> to appear of forum home page and subsequent pages. Continue reading