• Resolved suitedconnector

    (@suitedconnector)


    I have several regular meta custom fields (not using a plugin) and I need to add them to the post template. I don’t know where to add the code. I think it has to be added in blocksy-child/template-parts/single.php but where inside this file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @suitedconnector

    It depends what you’re trying to do, exactly. We use a simple function called blocksy_single_content that displays the actual content on the page.

    You might want to check out how this function works inside of the content-helpers.php file. You can find it in /blocksy/inc/single/.

    If you could get back to us with more details on this one, we will try to provide more detailed instructions.

    Thanks

    Thread Starter suitedconnector

    (@suitedconnector)

    Where would I add this code?

    <?php echo get_post_meta($post->ID, ‘key’, true); ?>

    Theme Author creativethemeshq

    (@creativethemeshq)

    @suitedconnector Please let us know where exactly you need the meta field to appear in your single post template. Based on this, we will let you know where and how exactly you need to call this code to achieve what you need.

    Waiting for your reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I add a custom field to the child theme post template?’ is closed to new replies.