Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

Best way to Append Page Template <Title> Dynamically


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 4, 2013, 08:43 PM
IILLC
 
7 posts · Feb 2013
Best way to Append Page Template <Title> Dynamically

I have a database driven template in my website and would like to add an item name to the beginning of the page title.

Would it be better to try to add and concatenate the page title and title tag or can I just replace the info sent to with a custom string?

Atahualpa Code

PHP Code:
<?php 
list($bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $bfa_ata['h_posttitle']) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
?>
I am not 100% sure how it handles the generation but was hoping I could add my variable before the list and then just replace the $bfa_ata['h_posttitle'].

My Thoughts

PHP Code:
<?php
$itemname 
=  $row_rsMainItemListing['Name'];
$pagetitle "$itemname - Dungeons and Dragons Online Item Info";
list(
$bfa_ata$cols$left_col$left_col2$right_col$right_col2$bfa_ata['h_blogtitle'], $pagetitle) = bfa_get_options();
get_header(); 
extract($bfa_ata); 
?>
Or am I totally off base?

Thanks a ton for your help!
 

Bookmarks

Tags
dynamic, page title, php, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display page title in custom page template beetle8 Atahualpa 3 Wordpress theme 7 Oct 22, 2012 07:28 AM
Changing page content dynamically chrisrap Center area post/pages 1 Aug 29, 2011 05:12 AM
How can I adjust a div height dynamically ? dinoc Center area post/pages 7 Dec 21, 2010 07:05 AM
in Title Bar: possible to append a blurb or tag line? petevannuys Header configuration & styling 1 Jun 29, 2009 07:21 PM


All times are GMT -6. The time now is 06:10 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.