Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to implement Dynamic Page Titles
#2
nvinanda Wrote:In simple words, I need custom field (get_custom_field('page-title')) if available and simple title (get_page_clean_title() if custom field not available.

If you want to check the value, you have to use return_custom_field:

Code:
<?php
if (return_custom_field('page-title')) {
    get_custom_field('page-title');
} else {
    get_page_clean_title();
}
?>

BTW: Please post questions to plugins in the corresponding plugin's topic.
I18N, I18N Search, I18N Gallery, I18N Special Pages - essential plugins for multi-language sites.
Reply


Messages In This Thread
Trying to implement Dynamic Page Titles - by mvlcek - 2011-04-09, 23:20:49



Users browsing this thread: 1 Guest(s)