ActiveDen

Help: ProPanel WordPress Themes Options Panel

3 posts
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • United Kingdom
Summit99 says

Hey guys, 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
    // Value from Wordpress Page Dropdown
    $blockwho = get_option('good_blockwho');
    echo $blockwho;
?>

The above code outputs the slug (its the code given to me in the documentation).

Apologies if this is a newbie question, and thanks again for taking the time to read/help!

3 posts
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • United Kingdom
Summit99 says

Hi guys, so a few days ago i purchased the ProPanel for WordPress and i am fully delighted with it! I came into a problem when i tried to echo the_title and the_content of a page selection made in the Theme Options page from the Panel.

For anyone asking the same or a similar question i hope the code below helps you out!

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!

<?php
    $blockwho = get_option('good_blockwho');
    $homeblockwho = get_pages ('post_name='.$blockwho);

    foreach ($homeblockwho as $hbw) {   
      $content = $hbw->post_content;
      $content=do_shortcode($content);
      if ($content!='') echo "<h2><span>".$hbw->post_title."</span></h2>";
      apply_filters('the_content', $content);

      echo "".$content."";
    }
?>

Thanks guys! :inlove:

1 post
  • Bought between 50 and 99 items
  • Has been a member for 4-5 years
RE20 says

This is just what I am looking for, but having a weird issue in that I am getting both pages (cause at the moment I have 2 pages setup) showing titles and content. Not just one. Any ideas on why this is happening? Also I would like to have just the excerpt show not the full content, I have changed some of the coding but can’t seem to get it right. Any ideas also? Thanks in advanced.

2 posts
  • Has been a member for 0-1 years
iplaytheme1 says

Nice information! Thanks for posting. it is a good information! More wordpress themes download in http://iplaytheme.com

by
by
by
by
by