firstly thanks if you’ve taken the time to try and help out here!
I’ve recently bought this plugin:
Pro Panel WordPress Themes Options Panel
It’s a brilliant item, however one of the functions is to ‘select page from a drop down menu’. I for some reason can only echo the page slug: what-we-do
I want to echo the_title
and the_content
.
<?php
$blockwho = get_option('good_blockwho');
echo $blockwho;
?>
The above code outputs the slug (its the code given to me in the documentation).
And the below code is what’s in my functions
$options[] = array( "name" => __('Who We Are Block','framework_localize'),
"desc" => __('My Description.','framework_localize'),
"id" => $shortname."_blockwho",
"std" => "1",
"type" => "select",
"options" => $tt_pages);
Apologies if this is a newbie question, and thanks again for taking the time to read/help!
Ok so with a little help from a friend i’ve got the code working at long last! For any one who contacted me and tried to help be it in other questions or here, thank you!
Hi guys after a couple days of testing, reading up on the WordPress Codex i’ve finally been able to achieve half of what i wanted. The following code posts the content, with shortcode enabled.
Hope this code is useful, ill post an update when i am able to also post the page title.