WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Recent Posts Widget
[resolved] Add link 'View More Posts' below posts list (9 posts)

  1. ghleor
    Member
    Posted 1 year ago #

    Congratulations for plugin, works really well and fine designed.
    I would like to know if it is possible to add below list of posts a link to page where all post is displaying and how can I do it.
    Thank you very much!

    http://wordpress.org/extend/plugins/advanced-recent-posts-widget/

  2. safiweb
    Member
    Plugin Author

    Posted 1 year ago #

    Hey,

    Thank you for using the plugin.

    Its possible to add "View More Posts" link under the list but you will need to make adjustments to core plugin file.

    I will add this in the next version/update.

  3. ghleor
    Member
    Posted 1 year ago #

    Thanks for your answer
    Ok! I'll wait till then!

  4. fredMCCR
    Member
    Posted 1 year ago #

    I'm waiting too for this improvement !
    Any idea when it's planned for ?

  5. fredMCCR
    Member
    Posted 1 year ago #

    safiweb,
    Until it's implemented in your future release, I did a little hack of the code to display something equivalent.

    In advanced-recent-posts-widget.php line 216, added:

    echo '<ul class="more"><a href="my link">View More Posts</a></ul>';

    where "my link" points to the URL of the category.

    In advanced-recent-posts-widget.css lines 40 to 42, added:

    .advanced_recent_posts_widget .more{
       margin-left: 25px;
    }

    I don't like it much but it does the job ... for the moment !

  6. ghleor
    Member
    Posted 1 year ago #

    Yes, I did the same, but you just can use this widget once
    Also, I tried write:

    <a>
    instead of
    </a><a href="my link">

    But it doesn't work, because instance name is not "cat"

    I don't know if it can be solved just changing href link or if is more complicated to add.

  7. ghleor
    Member
    Posted 1 year ago #

    Yes, I did the same, but you just can use this widget once
    Also, I tried write:

    <a href="' . get_category_link($instance["cat"]) . '">
    instead of
    <a href="my link">
    But it doesn't work, because instance name is not "cat"

    I don't know if it can be solved just changing href link or if is more complicated to add.

  8. fredMCCR
    Member
    Posted 1 year ago #

    Check lines 52 or 231 of the php file. The instance name seems to be "cats" (with a S).

  9. ghleor
    Member
    Posted 1 year ago #

    The issue is that you can include several categories, then where would link category goes?
    That I want is a link that goes to category, having selected just one category on the list of categories

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.