Blog suddenly shows Archive instead of index page
Blog suddenly shows Archive instead of index page
Blog suddenly shows Archive instead of index page
The new 3.0 menu will do this for categories, just create a custom link as the ‘parent’ tab and give it a url of http://# and then add our categories as sub items but it doesn’t AFAIK give you a option for dealing with date based archives.
I think if you just copy-paste the functions and styles, you’re still missing a lot of code in the actual templates (those PHP files). Like others said, you might be missing classes… you might also be missing entire DIVs and other stuff, too, though.
As per the discussion in the comments, using . as a value for the “Category base” will send Apache into an infinite loop. Getting rid of the Category base in the URL is actually pretty tricky, just because of the way WordPress expects things to work. It you want to use a single character for … Read more
They’re not using WordPress, so whether they’re using a plugin for their specific CMS or not is a moot point. However, WordPress already includes a calendar widget for the sidebar. And there are several plugins in the repository that do the same: Calendar archive widgets. You will need to pick one and modify your site’s … Read more
This is straight from the WordPress codex <?php $arc_year = get_the_time(‘Y’); ?> <?php $arc_month = get_the_time(‘m’); ?> <a href=”https://wordpress.stackexchange.com/questions/18602/<?php echo get_month_link($arc_year, $arc_month); ?>”>archive for <?php the_time(‘F Y’); ?></a>
I would use the PHP Code Widget from Otto and then simply put this in the widget to limit the archives to 7 months: <ul><?php wp_get_archives(‘type=monthly&limit=7’); ?></ul> (Give the widget a title like Archives if you want, and remove the default WordPress Archive widget.) Function Reference/wp get archives
This is enabled by default if your using wp_nav_menu ( the drag & drop menu’s in admin) and have also set show_in_nav_menus to true for your register_taxonomy. To enable them to show go to Admin–>Appearance–>Menus Click “Screen Options” in the top right and you should see it listed there. ps. The post you linked is … Read more
Seems that the function outputs the current category with a special class name by default. http://codex.wordpress.org/Template_Tags/wp_list_categories#Markup_and_Styling_of_Category_Lists In your CSS you should be able to just do: li.current-cat { … }
Here is a quick crack at it, which should work in two level depth: <h2 id=”posts”>My Post Type</h2> <ul> <?php $not_in = array(); //to avoid naming the same post over and over //get top level terms $Parent_terms = get_terms( ‘my_taxonomy’, array(‘orderby’ => ‘name’,’parent’ => 0)); foreach ($Parent_terms as $term) { echo “<li><h3>”.$term->name.”</h3>”; echo “<ul>”; //get … Read more