Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
output <?php get_parent(); ?> without hyphen in template
#7
(2012-03-24, 03:52:05)Carlos Wrote: Using GS 3.1's new getPageField function:
Code:
<?php get_parent(0)!='' ? getPageField(get_parent(0),'title') : get_page_title();?>
displays parent title or current page title.

Let's say, on the main navigation I want to create a menu:
-Tutorial
-- GetSimple CMS
-- Wordpress

In the sidebar, I want create a child menu block:
GetSimple CMS : (title header)
-- Plugins (link)
--- How To Install Plugins (link)

Question: how to make the title child menu remain at "GetSimple CMS" even if a user is accessing the "How to Install Plugins"?
Please help and sorry for my english Smile
Reply


Messages In This Thread
RE: output <?php get_parent(); ?> without hyphen in template - by bigthanks - 2017-04-17, 18:48:20



Users browsing this thread: 1 Guest(s)