add php code Posted in : BookCard WP WhiteOneParticipant 17 August 2014 at 21:09 #15655 hello, where should i add this php code : <?php echo show_eap_ad_1(); ?> to let it appear above “Share this post on:” section for all my portfolio post. post example: http://goo.gl/yjj86q Mehmet S.Keymaster 17 August 2014 at 23:45 #15660 Hi, you can add it to portfolio-single.php file. Thanks WhiteOneParticipant 18 August 2014 at 07:54 #15663 yes, but where should i put it exactly in the code? i haven’t find the right place to add it to let it appear above “Share this post on:” section Mehmet S.Keymaster 18 August 2014 at 11:06 #15666 After this line: <!-- end Content Editor --> WhiteOneParticipant 18 August 2014 at 11:20 #15667 hi, in this case it will appear under the “Share this post on:” section not above it . Mehmet S.Keymaster 18 August 2014 at 19:53 #15671 Try this way: – add this to the end of your theme’s functions.php file before the closing chars ?> add_filter( 'the_content', 'custom_content' ); function custom_content( $content ) { if ( is_singular( 'portfolio' ) ) { $content = $content . show_eap_ad_1(); } return $content; } Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in and have valid license to reply to this topic. License required for the following item BookCard WP - 3D Folded vCard WordPress Themeby pixelwars Login and Registration Log in · Register