WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Plus
category name and link (1 post)

  1. ollybach
    Member
    Posted 1 year ago #

    Hi ,

    you seem to have taken the template tags for category name and link out !?
    anyway, i was using them in a previous version (which obviously broke when updating)

    so in case someone has the same problem what worked for me :

    ca. line 126 after
    $ID = get_the_ID();
    add

    $CATEGORY =  get_the_category($ID);
    $CATEGORYLINK = get_category_link($CATEGORY[0]->term_id);

    and also insert

    '{CATEGORY_NAME}' => $CATEGORY[0]->name,
                        '{CATEGORY_LINK}' => $CATEGORYLINK,

    around line 150

    maybe one could add these to the plugin again ?

    http://wordpress.org/extend/plugins/recent-posts-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.