WordPress.org

Ready to get started?Download WordPress

Forums

Show post meta fields on parent & child themes via widget (1 post)

  1. Wildergrip
    Member
    Posted 2 years ago #

    Hi,

    I'm creating a widget that shows specific custom fields.

    if (get_post_meta(get_the_id(), date, true))
    echo "<strong>Datum</strong>: ".get_post_meta(get_the_id(), date, true);
    else "";

    This will show my custom post meta on the current page, but i would like it to show on the sub / child pages too. How do i do that?

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic