Articles of categories

Change RSS format for specific categories

Is there way to have, in a single RSS feed, different formats for different categories? For example, if a post is a very long and technical one I would like to have only an excerpt (or a custom text with a link) and if it is short I would like to put the whole thing […]

Page that links to category content

I have a page called: fruit…then I have three child pages called cherry, lemon, and peach. I also have a category called fruit, and three child categories called cherry, lemon, and peach. What I am trying to do is when a user clicks on one of the child pages IE: “Cherry” the user gets a […]

How to only show parent categories in sidebar

How to only show parent categories in sidebar? But also when browsing posts, to show all the subcategories of the parent category the current post is in, showing the hierarchy. the other parent categories will also be displayed, but only the one that the post is in will reveal the subcategories. So basically show the […]

How to disable access to category pages

I want my categories to be active and at the same time I want to make the category pages inaccessible. Is it possible? If yes, How? Why I want to do this? (Possibly this may help) I am working on a ugc website. I am asked to bring /category/cat-name to /cat-name. I am also asked […]

Redirect year month day postname permalink structure to category postname structure

I have a WordPress site with a /%year%/%monthnum%/%day%/%postname%/ permalink structure, and now the client wants it changed to /%category%/%postname%/. How do I do a generic redirect for the old permalink structure to the new structure? I checked out, but it creates redirect code for /%year%/%monthnum%/%day%/%postname%/ to /%postname%/, instead of to /%category%/%postname%/

Exclude category from foreach loop

How can I exclude one category from this loop wher I list my custom type projects by year ? <?php foreach(posts_by_year() as $year => $posts) : ?> <h3><?php echo $year; ?></h3> <ul> <?php foreach($posts as $post) : setup_postdata($post); ?> <li> <a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a> </li> <?php endforeach; ?> <div class=”et_pb_column et_pb_column_4_4″><hr class=”et_pb_space et_pb_divider”style=”border-color: […]

Pagination on category page with custom post types

WordPress is not new for me but I am really stuck on this piece of code that I can not get to work properly. I register a custom post type News and let the custom post type use the WordPress categories ‘taxonomies’ => array(‘category’) So far so good. I can assign different categories to the […]

Multiple category posts on one page

Is it possible to have a section on a page that shows 2 excerpts from 4 different category posts, including their featured images? All I have so far is something like: <?php query_posts(“showposts=2&cat=11,12,13,14”); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php the_excerpt(); ?> <?php featured-image(); ?> <?php endwhile; […]

Display page of custom posts?

I have a custom post type, “design_asset”. I am displaying them on a page template, with the loop <?php rewind_posts(); $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var(‘paged’) : 1; $args = array( ‘post_type’ => ‘design_asset’, ‘posts_per_page’ => 100, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’ ); $loop = new WP_Query( $args ); while ( […]

Displaying One Custom Post Type's Content On Single Post of Another Custom Post Type

I’m currently building a college football blog and I have 2 custom post types: conference and team. Each conference post type will be a horizontal list consisting of each teams’ logo and will be displayed on every single team post so long as the team is in the respective conference. It will look virtually identical […]