Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Title of Pages in the left sidebar (http://forum.bytesforall.com/showthread.php?t=5902)

lucien Feb 16, 2010 07:50 AM

Title of Pages in the left sidebar
 
Hi All,

First post here, I'm a WP beginner and I try to customize Atahualpa a bit...

I managed to have my WP Atahualpa display a left sidebar and the center column. I use only static pages. I would like to use the left sidebar to display the name of my static pages instead of having them on the top of the center column.

Any suggestions on how to achieve that ?

Thx in advance :)

juggledad Feb 16, 2010 03:09 PM

add the PAGES widget to the sidebar

lucien Feb 16, 2010 05:12 PM

I don't want to show my pages on the left sidebar but i want to show the title of the current static page : let's say somebody click "About Us" on the page menu bar, then i would like the text "About Us" to be displayed on the left sidebar.

juggledad Feb 16, 2010 05:39 PM

add a php widget (check out 'Samsarin PHP Widget' ) then add in '<?php wp_title( ); ?>'
you can read about this at http://codex.wordpress.org/Template_Tags/wp_title

lucien Feb 16, 2010 08:02 PM

I've installed Samsarin and put the code <?php wp_title( ); ?> in it but it did not display anything, it was blank.
However this code <?php bfa_post_headline(); ?> produced the expected result. I got this code from another guy's thread: http://forum.bytesforall.com/showthread.php?t=4130 with you helping out.
I just copied the code, I don't really understand it.

juggledad Feb 17, 2010 05:07 AM

There is a slight difference in how the functions work.

The code '<?php bfa_post_headline(); ?>' will give you the POST title in a page with a post, and the page title on a 'PAGE' page
The code '<?php wp_title( ); ?>' will only give you the PAGE title. (except on the front page)

When displaying a category page, you will see the category name when using '<?php wp_title( ); ?>' and the first post title when using the other code.

Glad you found the other post and have you issue resolved.


All times are GMT -6. The time now is 05:58 AM.

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