Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1360649

    Hello,
    how do i make the custom field “adress” visible below the content of a blogpost?
    – I will not use any plugins
    – i have a child theme in charge

    kind regards
    Eva Simone

    #1360703

    Hey evas49,

    I’m not sure I understand your question or problem, could you try to explain what you are looking to achieve a bit further please?

    Best regards,
    Rikard

    #1360799

    Hello,
    I already did:
    “How do i make the custom field “adress” visible below the content of a blogpost?”

    or:
    How do i make any given CF visible in the content of a blogpost?

    What is a custom field?:

    https://kriesi.at/support/search/?bbp_search=Custom+Fields

    Eva Simone

    #1360801

    Hello @guenni007 or @ismael
    can you please tell me where in loop-index.php i have to place the code to get my CFs echoed?
    <?php echo get_post_meta($post->ID, 'adress', true); ?>
    (unfortuately there are no good comments which makes a normaly very easy thing quite complicate)

    I followed exactly @yigit s advice here but all i got was “Call to undefined function the_field()”:
    https://kriesi.at/support/topic/displaying-custom-field-on-blog-post/

    This does also not work:

    echo '<h2>'; 
    get_post_meta($post->ID, 'adress', true);
    echo '</h2>';

    It simply shows nothing although the CF “adress” exists and is filled with data.

    kind regards
    Eva Simone

    • This reply was modified 1 week, 6 days ago by  evas49.
    • This reply was modified 1 week, 6 days ago by  evas49.
    #1360825

    Hi Eva,

    Please edit loop-index.php file on your child theme and find line 569

    		echo '<div class="post_author_timeline"></div>';
    		echo av_blog_entry_markup_helper( $current_post['the_id'] );
    
    		echo '</article>';

    and change it to following

    		echo '<div class="post_author_timeline"></div>';
    		echo av_blog_entry_markup_helper( $current_post['the_id'] );
    		echo '<p class="custom-field">';
    		echo get_post_meta($post->ID, 'address', true);
    		echo '</p>';
    		echo '</article>';

    Regards,
    Yigit

    • This reply was modified 1 week, 6 days ago by  Yigit.
    #1360846

    Hi Yigit
    it does not work.
    No output.

    Debugging gives nothing relevant:
    Warning: session_start(): Cannot start session when headers already sent in /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries/masonry_entries.php on line 102

    Eva

    OKAY: WORKS
    You had a typo (address instead of adress) and i didnt notice

    THANKS

    • This reply was modified 1 week, 5 days ago by  evas49.
    #1360857

    Problem:
    In some cases the content of the CF is hidden behind the footer section.
    It happens when the nextgengallery (which is above the CF) contains more then about 8 images

    How do i fix this?

    Eva

    #1361037

    Hi,

    Glad to know that the modifications above are working properly. Regarding the footer issue, Please provide a link to the page containing the nextgen gallery so that we can check it properly.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.