• Resolved Anonymous User 4116433

    (@anonymized-4116433)


    I’m a newbie to PHP, and I’d like to use OptionTree’s “Category” checkbox to select a category and then query that category in my template file. I can’t figure out how to echo the category ID into a PHP call. If anyone could point me in the right direction, I’d greatly appreciate it!

Viewing 1 replies (of 1 total)
  • Thread Starter Anonymous User 4116433

    (@anonymized-4116433)

    Resolved (I think)… here’s a snippet that’s working, in case anyone else is looking for the same thing:

    $cat = get_option_tree( 'test_option', '', false, true, 0 );
    query_posts("cat=$cat&showposts=3");

Viewing 1 replies (of 1 total)
  • The topic ‘Using OptionTree to query category’ is closed to new replies.