WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Wildergrip
    Member
    Posted 4 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