Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter kendinol

    (@kendinol)

    Thanks for that. Yesterday, I did this:

    I’ve created a new child theme and under that I’ve created a new file called section-headlines.php, in that file I added these new loops 🙂

    <?php //---------------------- I Category  ?>
    <?php $the_query = new WP_Query( 'showposts=3&cat=147' ) ?>
    <div class="headline-list">
    <h2 class="widget-title"><a href="<?php echo get_category_link(147); ?> "><?php echo get_cat_name(147) ?></a></h2>
    <ol>
    <?php while ( $the_query->have_posts() ) :
    	$the_query->the_post();?>
    	<li class="clearfix">
    
    <?php	if ( current_theme_supports( 'get-the-image' ) )
    								get_the_image(
    									array(
    										'size'          => 'small',
    										'image_class'   => 'thumbnail',
    										'default_image' => THEME_URI . '/images/default-thumb-mini.png'
    									)
    								); ?>
    
    	<h3 class="post-title entry-title"><a href='<?php echo the_permalink() ?>'><?php echo get_the_title() ?></a></h3>
    	<span class="headline-meta">
    	<time class="published"><?php echo get_the_date(); ?></time>
    	| <span class="author vcard">
    	<?php echo the_author_posts_link(); ?>
    	</span></span></li>
    
    <?php endwhile;
    wp_reset_postdata();
    ?>
    </div>

    It seems it is kind of unreasonable thing i did considering the hybrid framework and the theme. I tried what you said, seems working on author but I cant show subcats in headlines. I wait for the new version.

    Thanks

Viewing 1 replies (of 1 total)