Support » Theme: Spun » Help needed with wp-list-categories

  • Dear Caroline,
    Hoping you will help me again…

    I am trying to have one circle on the home page which links to a new page with circles which display posts in a News category.

    I created my own Post Format called content-quote.php in my Child Theme, displaying category ID 13 which is my News category.
    Here is the code:

     * BW The template used for displaying a post of categories
     * @package Spun
     * @since Spun 1.0
     * Child theme Natuurschool
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	<header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header><!-- .entry-header -->
    	<div class="entry-content">
    		<?php wp_list_categories('orderby=name&include=13&title_li='); ?>
    	</div><!-- .entry-content -->
    	<footer class="entry-meta">
    		<?php if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
    			<span class="comments-link">
    				<a href="#comments-toggle">
    					<span class="tail"></span>
    					<?php echo comments_number( __( '+', 'spun' ), __( '1', 'spun' ), __( '%', 'spun' ) ); ?>
    		<?php endif; ?>
    		<?php edit_post_link( __( 'Edit', 'spun' ), '<span class="edit-link">', '</span>' ); ?>
    	</footer><!-- .entry-meta -->
    </article><!-- #post-<?php the_ID(); ?> -->

    Then created a post called Nieuws formatted as quote (see my site, it is the first circle).
    Clicking on this you get a page with the word Nieuws, which leads you nicely to a page with circles displaying all the posts in the Nieuws category.

    BUT I want to skip the step with the word ‘Nieuws’ and go directly from the start page to the latter displaying the circles.

    Can you help me?
    Which code do I need in the content-quote.php?

    Thanks, Bastienne

  • The topic ‘Help needed with wp-list-categories’ is closed to new replies.