How to display custom content in post with category XXX

yes you can do that. You can use get_category_link for it. if(): while(): the_content(); if(category == “category one”){ // Get the ID of a given category $category_id = get_cat_ID( ‘helper for category one’ ); //get_cat_ID(‘category_name’); // Get the URL of this category $category_link = get_category_link( $category_id ); // Print category link here } else{ display_nothink … Read more

Loops in category description

What you want to do is to group fruits by color. In WordPress term appropriate mechanism for that is taxonomy (categories and tags are examples of taxonomy). I would create a custom taxonomy “fruit color” where terms would be individual colors and assigned to fruits. Then your display logic would be to: retrieve all fruit … Read more

Combining fancybox with multiple thumbnail plugin

I managed to get the result on my own after much playing with the codes. Here is the working code 🙂 <div class=”collections_dresses_container”> <?php query_posts(‘posts_per_page=-1&cat=10’); if(have_posts()) : while(have_posts()) :the_post(); ?> <div class=”collections_thumbnails”> <?php $imgID = get_post_thumbnail_id(); $url = MultiPostThumbnails::get_post_thumbnail_url(get_post_type(), ‘secondary-image’); ?> <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’); echo ‘<a class=”fancybox” href=”‘ … Read more