Title: jhames's Replies | WordPress.org

---

# jhames

  [  ](https://wordpress.org/support/users/jhames/)

 *   [Profile](https://wordpress.org/support/users/jhames/)
 *   [Topics Started](https://wordpress.org/support/users/jhames/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jhames/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jhames/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jhames/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jhames/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jhames/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/jhames/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jhames/replies/page/2/?output_format=md)

 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Strip out Microsoft Word’s extraneous HTML tags](https://wordpress.org/support/topic/strip-out-microsoft-words-extraneous-html-tags/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/strip-out-microsoft-words-extraneous-html-tags/#post-933980)
 * Thanks for the tip about Paste from Word!
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [wp_list_pages Active State](https://wordpress.org/support/topic/wp_list_pages-active-state/)
 *  [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/wp_list_pages-active-state/#post-907778)
 * I would love to know how you fixed this issue, floodlightdesign. I am using `
   <div class="tabs"><ul><?php wp_list_pages('title_li=' ); ?></ul></div>` in header.
   php and I am getting `current_page_item` to appear in the category-tabbed navigation.
   But I can’t get `current_page_parent` to appear when I click a post related to
   a category tab.
 * I installed WP 2.7 RC 3 this morning, btw.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/3/#post-917832)
 * I can ZIP and e-mail you what I’ve got, if that helps.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/3/#post-917831)
 * I’ve decided to manually control the tabs and pages outside of WP tags. I’m not
   going to mark this thread as “resolved” since I can’t achieve the desired effect.
   But if anyone can figure out how to present categories – not pages – as tabs 
   for navigation, let me know.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917826)
 * I also have the main menu of tabs showing “Latest News” as current category, 
   even though I’m on the events.php page.
 * I really enjoy the ease of WordPress from the publishing end but I’m concerned
   about the amount of PHP that a person must know in order to work with the system.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917825)
 * Oh dear. I had unexpected results.
 * WordPress isn’t including `<div>` tags I wrote, but at the same time it’s inserting
   code I don’t want. I’m sorting through my events.php page right now trying to
   uncover why `<div>` tags didn’t get published.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917816)
 * I just got server access this afternoon. I’ll try your solution and let you know
   asap the results.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917801)
 * Reading your last response a second time, I think your solution is far, far simpler.
 * I better get on that server access asap.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917800)
 * Mother Mary Magdalene, I got it to work!
 * I now have the active tab using the “on” state with the other two tabs using 
   the “off” state, AND only posts associated with “news” are displaying on the 
   homepage.
 * Now one last trick: when the user clicks on “events”
    - how to hide the posts related to “news”
    - how to highlight “events” with the “on” state tab
 * WP is really cool, I only wish so much of my questions weren’t dependent on PHP.:\
   But thank you so much for all of your assistance, buddha trance! I couldn’t have
   made it this far without you. 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917798)
 * Sorry for the multiple replies, WP didn’t show my first reply as posted.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917797)
 * I found a link via Google on a WordPress Navigation Bar and I am trying to adjust
   its use on the page.
 * `<?php`
    `if (is_page()) {` `$highlight = "page_item";` `} else {` `$highlight
   = "page_item current_page_item";` `}` `?>` `<div>` `<ul class="tabs">` `<li class
   ="<?php echo $highlight; ?>"><a href="<?php echo get_settings('home'); ?>">Latest
   News</a></li>` `<?php wp_list_categories('title_li='); ?>` `</ul>` `</div>`
 * Can your solution be done within the default pages provided by WP? I’m only asking
   because I have **limited** server access.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917796)
 * I found a link via Google on a WordPress Navigation Bar and I am trying to adjust
   its use on the page.
 * `<?php`
    `if (is_page()) {` `$highlight = "page_item";` `} else {` `$highlight
   = "page_item current_page_item";` `}` `?>` `<div>` `<ul class="tabs">` `<li class
   ="<?php echo $highlight; ?>"><a href="<?php echo get_settings('home'); ?>">Latest
   News</a></li>` `<?php wp_list_categories('title_li='); ?>` `</ul>` `</div>`
 * Can your solution be done within the default pages provided by WP? I’m only asking
   because I have **limited** server access.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917795)
 * I found a link via Google on a WordPress Navigation Bar and I am trying to adjust
   its use on the page.
 *     ```
       <?php //highlight 'Blog' if not Page
       if (is_page()) {
       $highlight = "page_item";
       } else {
       $highlight = "page_item current_page_item";
       }
       ?>
       <div>
       <ul class="tabs">
       <li class="<?php echo $highlight; ?>"><a href="<?php echo get_settings('home'); ?>">Latest News</a></li>
       <?php wp_list_categories('title_li='); ?>
       </ul>
       </div>
       ```
   
 * Can your solution be done within the default pages provided by WP? I’m only asking
   because I have **limited** server access.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Styling Categories using Images](https://wordpress.org/support/topic/sytling-categories-using-images/)
 *  [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/sytling-categories-using-images/#post-920894)
 * I’m in the same boat as you, displayname. buddha trance has been kind enough 
   to help me figure out how to display only one category on my main page, but I’m
   still puzzled as to how I can display all the categories as tabs that a user 
   can click to view.
 * I’m about to try your secondary code, but have you had any success with `the_category(',')`?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Work with index.php to display a tab for created categories](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/)
 *  Thread Starter [jhames](https://wordpress.org/support/users/jhames/)
 * (@jhames)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/work-with-indexphp-to-display-a-tab-for-created-categories/page/2/#post-917789)
 * Holy Dhammapada, buddha trance, it worked! Now I can view only the News entries
   on the main page.
 * …Now I just need WP to display the “News” tab with the class “current_category”.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/jhames/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/jhames/replies/page/2/?output_format=md)