Redirecting specific category to subdomain

Well, thanks for hints but finally, I had to abandon the idea of subdomain due to lack of working solution for this. I made separate categories for questions and used some hooks to display&operate on them properly. Thanks to the Custom Permalinks plugin, I now have domain.com (main blog) and domain.com/forum/ (Q&A), and the latter … Read more

How can I create a loop to build slides based on multiple categories using Coda Slider

For those who were interested in an answer to this question, I found the answer myself. <div class=”coda-slider” id=”slideshow”> <?php // array of category IDs $categories = array(1,2,3,4,5); foreach ($categories as $cat) : $post = false; $post = get_posts(‘cat=”.$cat.”&posts_per_page=1’); if($post) : $post = $post[0]; setup_postdata($post); ?> <!– rest of normal loop –> <div <?php post_class(); … Read more

Rewrite category slug

It can be done by writing a code on post_link filter. This filter allows you to change the final post link. Since you are showing categories in your permalink, so I am assuming that your permalink structure contains %category% in it. Below code will help you to get links the way you want. add_filter( ‘post_link’, … Read more

Excluding a category from next and previous post links

The next_post_link() and previous_post_link() functions have parameteres as follows – $format (string) – You’ve already included this. $link (string) – You’ve already included this. $in_same_term = false (boolean) – Whether or not all linked posts should be within the same taxonomy term. Chances are this should be false if you are looking to exclude a … Read more