How to query_posts that have a meta_value that eqals the page title (1 post)

  1. mikedev
    Posted 6 years ago #

    Here's my code to find pages that have a certain meta value:
    <?php query_posts('post_type=page&meta_value=ADHD/ADD'); ?>

    I am trying to change it so that it finds pages that have a meta value that is equal to the current page title. Something like this:
    <?php query_posts('post_type=page&meta_value=the_title'); ?>

    Here is a topic that seems to be close: http://wordpress.org/support/topic/265467. Unfortunately I don't understand it. For example, where in the code does he put $variable = get_post_meta($post->ID, 'info', $single = true);?

Topic Closed

This topic has been closed to new replies.

About this Topic