jhames
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesI did customize the style from the Default theme. Is it possible to ignore header.php, sidebar.php and footer.php, and simply work with index.php?
Forum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesI tried your code and the following list appeared:
- News
- Events
- Latest News
- Press Releases
I removed the first list item tag and my result was the same as before but without “News”.
*sigh*
Forum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesPart One:
Each tab should have an off and on state. News, by default, will be on and therefore white. The other two tabs will be gray.
If wp_list_categories can set the News tab to current, then I can use CSS to give it a white tab background.
Part Two:
Within
<?php if (have_posts()) : ?>
, do I need to add, delete or edit any of the default code to tell WP that I only want to see entries under category “News” because the tab “Latest News” is active?Forum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesTotally follow you there. What I want to do is lead with “News” which has a white tab to indicate it’s selected. I thought I could somehow add an argument to
<?php wp_list_categories('orderby=name&include=3,4,5' . 'exclude&title_li='); ?>
but I’m not sure where to placecurrent_category=1
in the tag. I triedinclude=3,4,5¤t_category=1
but that didn’t seem to work.Forum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesForum: Fixing WordPress
In reply to: Work with index.php to display a tab for created categoriesThank you for the tip on wp_list_categories, buddha trance. I’m using the following code to define the category tabs:
<?php wp_list_categories('orderby=name&include=3,4,5' . 'exclude&title_li='); ?>
The next step, after I apply CSS to each list item and create tabs, is to link each tab with its category. Is there a simple way to wrap an
a
tag around the categories?