rafaeldesilva 0 Report post Posted October 24, 2011 Hello, I need to add a php function call just after the end of a post but before comments (only posts, not pages), as I've always done it (before using PlatformPro) was editing single.php and adding this function call. Now, I see single.php only has this content: setup_pagelines_template() so I guess I need to make some PlatformPro specific variation in order to accomplish this... Could someone orientate me in "what" I need to modify to add this function call to a post template? Thank you Share this post Link to post Share on other sites
Danny+ 1,327 Report post Posted October 24, 2011 Hi Rafael, You would add the code to your functions.php file located in /wp-content/themes/platformbase/ If you post the code we should be able to assist you. Please search our forums, before posting! Share this post Link to post Share on other sites
rafaeldesilva 0 Report post Posted October 24, 2011 Well, what I need actually is to add a function call (form one of my plugins) just after the post pagination, now the plugin shows before post pages (1,2,3), and I need to show it after. A hook (is that what you propose?) in post pagination would do it but I don't know how to hook that function. By the waym, I have PlatformPro, didn't activate PlatformBase Thank you Share this post Link to post Share on other sites
Kate 3 Report post Posted October 24, 2011 Hi Rafael, First, in order to add a hook, you will have to activate Base. That's where the functions.php file you'll modify is. In addition, if you go to Settings->Template Setup->Single Post Content Area you'll see "Pagination" in the left column of the "Single Post Content Area Template Sections". If you click on "Advanced Setup", you'll see a list of hooks that you can use. If you want the plugin to show after the pagination, you could use "paglines_after_navigation". Share this post Link to post Share on other sites
Rob 547 Report post Posted October 24, 2011 Rafael, To learn about hooks, please read http://www.pagelines.com/docs/base-child-theme and watch the video. I had to add a hook and after watching the video several times and reading the information I was able to do it easily. One minor correction to Kate's statement, the hook is "pagelines_after_navigation". She had a minor spelling error there. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites