Results 1 to 1 of 1
-
4th Oct 2012, 11:25 PM #1OPMemberWebsite's:
KWWHunction.com Google.comhelp insert content on every post in wordpress
Code:function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>This article is copyright © '.date('Y').' '.bloginfo('name').'</p>'; } return $content; } add_filter('the_content', 'add_post_content');
xiona_marie Reviewed by xiona_marie on . help insert content on every post in wordpress function add_post_content($content) { if(!is_feed() && !is_home()) { $content .= '<p>This article is copyright © '.date('Y').' '.bloginfo('name').'</p>'; } return $content; } add_filter('the_content', 'add_post_content'); saw this code in the internet and it works but when i click on what ever categories in my site. the $content shows even without clicking the post. Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to insert filehost icons to your wordpress sites
By cyberavijit in forum Tutorials and GuidesReplies: 24Last Post: 26th Sep 2012, 06:35 PM -
Hide Special Part in Content of Post?!Need Plugin!
By Deadmau5 in forum WordpressReplies: 5Last Post: 19th Jan 2012, 05:07 PM -
How to post full content from feed ???
By Apple in forum Technical Help Desk SupportReplies: 0Last Post: 23rd Feb 2011, 07:15 AM -
Post or Leech All your content in Reloaded.ws!
By CyberFreak in forum Community CooperativeReplies: 0Last Post: 30th Jan 2011, 08:24 AM -
See Content after Commenting? (Wordpress)
By Psycho in forum Webmaster DiscussionReplies: 1Last Post: 4th Jun 2010, 11:22 AM
themaCreator - create posts from...
Version 3.22 released. Open older version (or...