Home › Forums › WordPress Themes – Premium › Circumference › Custom header and caption not appearing on Posts Page
- This topic has 7 replies, 4 voices, and was last updated 7 years, 1 month ago by
Sushil Adhikari.
-
AuthorPosts
-
October 7, 2016 at 12:51 am #38838
Robert Mion
ParticipantAfter reviewing the documentation for Circumference, I successfully setup the proper custom fields to enable a header and caption. When set, they correctly appear on all pages, except the designated Posts Page. To be clear, I specified that the custom field group display on all Pages, including Posts Pages.
Upon initial research, it appears ACF is aware of a potential issue:
https://www.advancedcustomfields.com/resources/value-loading-posts-page/Has anyone else experienced this issue, and has a way to remedy?
October 7, 2016 at 5:43 am #38845Binaya D
ParticipantHi Robert,
We are really sorry to inform you that we are little confused about your issue, so could you please explain your issue with screenshots, so that it will be easy to both of us to find the solution asap. We hope you understand.
We look forward to your respond.
Thanks
October 8, 2016 at 1:33 pm #38906Robert Mion
ParticipantPlease visit this imgur gallery for screenshots describing the issue:
http://imgur.com/a/a2RB6Thank you for your help.
October 14, 2016 at 8:31 am #39069Bidur
ModeratorHi,
We cant understand what you are trying to do. I think you are using wordpress plugins please visit to relative plugin support for this. Or you can describe in detail what you are trying to perform in this site so that we can help.
If you need additional help please contact us.
October 23, 2016 at 9:27 pm #39383Robert Mion
ParticipantHi,
My goal:
Feature two items on the Posts Page of my WordPress site:
1. Header background image
2. Header captionCircumference makes these items available via the Advanced Custom Fields plugin (I followed instructions to the detail from the documentation). These items correctly appear on every other page.
The Posts Page is setup exactly like all other pages. However, I do not see the image or caption when I visit the page.
How might I fix this problem?
October 24, 2016 at 9:41 am #39390Binaya D
ParticipantHi Robert,
We are really sorry but could you please explain your issue with screenshots or the link of the demo page, so that we could provide you solution asap. We hope you understand.
We look forward to your respond.
Thanks
October 24, 2016 at 3:48 pm #39404Robert Mion
ParticipantMy response dated October 8 contains screenshots that should help you in diagnosing the issue.
I provided the new website’s URL with this response: http://resolvetalent.com
The problematic page is ‘Our Blog’ which can be accessed using the website’s main navigation (it is the right-most link).
October 25, 2016 at 10:07 am #39440Sushil Adhikari
ModeratorHi Robert Mion,
Thank you for contacting Styled Themes support team, we are really sorry for the inconvenience caused. This happens when ACF plugin is unable to queried the blog page.
Please have a look on this article for reference: https://support.advancedcustomfields.com/forums/topic/acf-fields-not-displaying-on-posts-page/Here on theme you need to make some sligt changes on header.php template. Please customize header.php file keeping on child theme otherwise
your changes will lost on theme update.Find this code on header.php file:
<aside id="cir-banner" style="background-color: <?php echo get_theme_mod( 'banner_bg_colour', '#c6b274' ); ?>; <?php if ( get_header_image() ) : ?>background-image: url(<?php header_image(); ?>);<?php endif; ?><?php if( get_post_meta($post->ID, 'header_background', true) ) { ?> background-image: url(<?php echo esc_url (the_field('header_background')); ?>); <?php } ?> color: <?php echo get_theme_mod( 'banner_text_colour', '#ffffff' ); ?>;"> <?php get_sidebar( 'banner' ); ?> </aside>
And replace above code with the following code:
<?php $post_id = false; if( is_home() ) { $post_id = 123; // specif ID of home page } <aside id="cir-banner" style="background-color: <?php echo get_theme_mod( 'banner_bg_colour', '#c6b274' ); ?>; <?php if ( get_header_image() ) : ?>background-image: url(<?php header_image(); ?>);<?php endif; ?><?php if( get_post_meta($post->ID, 'header_background', true) ) { ?> background-image: url(<?php echo esc_url (the_field('header_background', $post_id )); ?>); <?php } ?> color: <?php echo get_theme_mod( 'banner_text_colour', '#ffffff' ); ?>;"> <?php get_sidebar( 'banner' ); ?> </aside>
Note: If you’re not technically sound in WordPress, we suggest you to take help of a developer.
Thanks
-
This reply was modified 7 years, 1 month ago by
Sushil Adhikari.
-
This reply was modified 7 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.