• Resolved icybergie

    (@icybergie)


    I have made a page that lists all my posts and I would like people who click on this particular category be redirected to that page.

    Is there anyway I can do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • HI I have the same issue.
    Mind sharing the solution?
    Regards

    I would very much love the answer to this question, wordpress wizards can you please help?

    Here is a way to redirect one category, I would like to know a way to redirect multiple categories

    http://wordpress.org/support/topic/315270

    Another solution:

    Sources:
    http://php.about.com/od/blogs/qt/wpcontentexcerpt.htm
    http://www.elegantthemes.com/forum/viewtopic.php?f=55&t=17089&sid=f853d807361ffa33c046f84cd90bee31

    Replace:

    <p><?php truncate_post(365); ?></p>

    With code:

    <?php
     $customField = get_post_custom_values("full");
     if (isset($customField[0])) {
     //Custom field is set, display a full post
     the_content();
     } else {
     // No custom field set, let's display an excerpt
     the_excerpt(); ?>
    
     <?php } ?>

    Instructions:

    For post you want to display full, in custom field put full, value not reivent

    ————————————————-

    To get rid of the readmore button on full post

    Replace:

    <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Read More','TheSource'); ?></span></a>

    with code:

    <?php if(is_category('food-for-thought')) { echo ""; } else { ?>
          <a href="<?php the_permalink(); ?>" class="readmore"><span><?php _e('Read More','TheSource'); ?></span></a> <?php } ?>

    Instructions: replace food-for-thought with your own category that you want to remove the read more button

    Rather than echoing a blank, and having your actual command on an ‘else’ condition, wouldn’t it be simpler to make your ‘if’ condition a !is?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect Category To Page’ is closed to new replies.