2013-04-09, 08:29:56
getPageField(get_parent(0),'title'); posted somewhere Carlos, and this snippet was working flawlessly till 3.2.1
I'm using below code:
which breaks on mentioned call, until I restore caching_functions.php file from GS 3.2
I'm using plenty plugins, where among the other i18n plugin family plays the most important role.
ps. i18n plugs tend to be problematic with every new GS update.
Have that on mind, as Mvlcek's plugins bring too many features which GS just lacks.
I'm using below code:
Code:
$custom_page_name = return_custom_field('pagetitle'); //custom page name
if ($template_file == 'template_pomoc.php') {
if (get_parent(0)!='') { //if page slug is nested, display parent name + slug name
echo '<h1 id="pagetitle">';
getPageField(get_parent(0),'title');
if (!empty($custom_page_name)) { //show custom page name if provided
echo ': '.$custom_page_name.' </h1>';
}else echo ': '.return_page_title().' </h1>';
I'm using plenty plugins, where among the other i18n plugin family plays the most important role.
ps. i18n plugs tend to be problematic with every new GS update.
Have that on mind, as Mvlcek's plugins bring too many features which GS just lacks.
Addons: blue business theme, Online Visitors, Notepad