This code is in my functions.php
:
array( "name" => "Headline",
"type" => "section"),
array( "type" => "open"),
array( "name" => "Headline Categories",
"desc" => "Choose a category from which featured posts are drawn",
"id" => $shortname."_headline",
"type" => "select",
"options" => $wp_getcat,
"std" => "Select a category"),
array( "type" => "close"),
Now, how to show posts from category select on page.php
or page template?
It looks like you are trying to model this on theme options code. You can’t do that. That is backend code. As written, this question is very broad– I am tempted to vote to close as “too broad”– but I will offer bare bones code to get you started:
You will need to consult the documentation for
wp_dropdown_categories
andWP_Query
, and will probably need to do a bit a research on HTML forms and basic PHP.