Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • hi Mr. Shockwave,

    have u reached a solution for this?

    Thread Starter nhakeem

    (@nhakeem)

    Coding is not my thing…

    tried altering category.php file by inserting this code

    // Modify the default loop, include custom post types
    global $wp_query;
    $args = array_merge( $wp_query->query, array( 'post_type' => 'any' ) );
    query_posts( $args );
    
    // The beginning of the loop looks like this:
    while ( have_posts() ) : the_post();

    Here is how the category.php file looks like

    <?php get_header(); ?>
    	<div class="content">
    	<?php tie_breadcrumbs() ?>
    
    		<?php $category_id = get_query_var('cat') ; ?>
    
    		<div class="page-head">
    			<h2 class="page-title">
    				<?php printf( __( 'Category Archives: %s', 'tie' ), '<span>' . single_cat_title( '', false ) . '</span>' );	?>
    			</h2>
    			<?php if( tie_get_option( 'category_rss' ) ): ?>
    
    			<a class="rss-cat-icon ttip" title="<?php _e( 'Feed Subscription', 'tie' ); ?>" href="<?php echo get_category_feed_link($category_id) ?>"><?php _e( 'Feed Subscription', 'tie' ); ?></a>
    			<?php endif; ?>
    			<div class="stripe-line"></div>
    
    			<?php
    			if( tie_get_option( 'category_desc' ) ):
    				$category_description = category_description();
    				if ( ! empty( $category_description ) )
    				echo '<div class="clear"></div><div class="archive-meta">' . $category_description . '</div>';
    			endif;
    			?>
    		</div>
    		<?php tie_include( 'slider-category' ) ?>
    		<?php get_template_part( 'loop', 'category' );	?>
    		<?php if ($wp_query->max_num_pages > 1) tie_pagenavi(); ?>
    
    	</div> <!-- .content -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I will try with the theme developer as well.

    Thanks

    Thread Starter nhakeem

    (@nhakeem)

    Hello Jorn,

    Thanks for your reply.

    The thing is, my theme settings panel has a homepage drag and drop setup, where I can show the latest posts in each category. But this settings panel only accept default wordpress categories.

    So, It would be perfect to show WordPress Posts and Custom Post Types on the same category page. (No.1).

    Alternatively, showing Custom posts types on a certain (wordpress default) category page may also work.

    Thanks for your help. Much appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)