WordPress.org

Ready to get started?Download WordPress

Forums

MesoColumn
Using ACF Custom Fields in MesoColum (3 posts)

  1. Rachel Ambler
    Member
    Posted 3 months ago #

    First off, this is a wonderful theme, love it to death.

    The only thing left on my checklist before I make my blog redesign live is to get a single ACF custom field to show up on every post.

    I read up on creating a hook into bp_after_post_content (this is my first foray into the wacky world of php) but I couldn't see it being called anywhere.

    I even tried this directly in single.php but got nowhere (yes, I know I should be using a child form but right now I'm just trying to even get the basics to work!)

    <?php
    
    add_action('bp_after_post_content', 'show_acf', 10);
    
    function show_acf()
    {
    ?>
    <H1>Hello</H1>
    <?php
    }
    ?>
  2. Richie KS
    Member
    Theme Author

    Posted 3 months ago #

    should be working.
    try create a new php file name it meso-custom-functions.php and put it in wp-content/ so correct path would be

    /wp-content/meso-custom-functions.php

    and insert the code above.

  3. Rachel Ambler
    Member
    Posted 3 months ago #

    I'll give it a try later this afternoon and report back then.

    Thanks!

Reply

You must log in to post.

About this Theme

About this Topic