Support

Account

Home Forums Backend Issues (wp-admin) Relationship child find parent url

Solved

Relationship child find parent url

    • DMD

    • December 11, 2013 at 3:05 am

    Is it at all possible for a post that is being viewed could find out what post has it in it’s relationship field in order to get its url?

    • DMD

    • December 11, 2013 at 3:10 am

    nevermind i just did it with a wp query

    $query = new WP_Query(array(
                'post_type' => 'promocontainers',
                'meta_query' => array(
                    'key' => 'videos',
                    'value' => get_the_ID(),
                    'compare' => 'LIKE'
                )
            ));
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.