Need Help Adding PHP in 3.7.3 In Posts
I know PHP is no longer supported in settings for Ata 3.7.3
But I want to add a php shortcode for the plugin Similar Posts below posts in the footer, how can this be done in the backend files? There is no single.php, so where do I do it? Thanks |
index.php controls the loop.
|
oh, I did not realize that controls individual posts as well? On other themes it's usually just home page only, no?
Where exactly is the INDIVIDUAL POSTS - AFTER POSTS (footer) section in this code Code:
<?php |
HTML Code:
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?> |
Quote:
Can you please give the code to make it displays on INDIVIDUAL POSTS only? AND Individual Pages too? |
wrap the code in a php if testing for a single page or a page page. You can find the tests in the wordpress codex.
|
Quote:
Can you give me the link for that fix for Ata 3.6 not showing live in certain cases? I read about it somewhere on the forum at one point, I tried search but nothing comes up. It was a bug fix of some sort, either 3.6 not showing up in new Wordpress versions, or PHP versions or certain hostings? |
By the way, for anybody who wants the fix to this I was finally able to get it right:
To add PHP code or shortcodes into Footer of single posts: Add this code into the index.php Code:
<?php if ( is_single() ) { ?> Code:
<?php bfa_post_footer('<div class="post-footer">','</div>'); ?> |
All times are GMT -6. The time now is 04:46 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.