Viewing 1 replies (of 1 total)
  • Thread Starter lawrencebrown

    (@lawrencebrown)

    I found a resolution:

    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $newID = get_post_meta($post->ID, 'catID', true);
    $wp_query->query('cat='.$newID.'&showposts=10'.'&paged='.$paged);
    ?>

    So this allows you to put just the ID number of a cat into a custom field and it will create a loop for you in that custom page.

Viewing 1 replies (of 1 total)

The topic ‘Using custom fields to define the category ID query’ is closed to new replies.