WordPress.org

Forums

Posts in Sidebar
[resolved] change link of "read more" (4 posts)

  1. pauandriole
    Member
    Posted 8 months ago #

    Hello, thank you for your beautiful plugin. I need change de link of the "read more" bottom. I need that all the post of a category (select by ID) links at the same page. Haw I can do it?
    Sorry for my english
    Thanks!

    https://wordpress.org/plugins/posts-in-sidebar/

  2. aldolat
    Member
    Plugin Author

    Posted 8 months ago #

    Hi,
    currently it's not possible to change the link of the "Read more" link. If you want to display the link to the category of the posts, you can use "The link to the archive" section.

    This link will be displayed if you select only one category of posts. For example, let's say you want to display three posts from the category news-of-the-day and display the link this category. In this case the link to the category will be shown.

    Anyway, in your case you could use a "hack". Follow these steps:

    1. Create a widget displaying only one post from one category
    2. Make blank the field "Use this text for More link" in the section "The text of the post"
    3. In the section "The link to the archive" activate "Display the link to the taxonomy archive" and in the "Use this text for archive link" field type the text "Read more..." or whatever you want.

    The widget will display a "Read more" link with the link to the category.

    Repeat this steps for every post you want to display (i.e., repeat these steps 2 times if you want 3 widgets).

    Let me know.

    Bye.

  3. pauandriole
    Member
    Posted 8 months ago #

    Hi, yes! I can do it! Thank you very much. I change one thing in posts-in-sidebar.php for include the "read more" tag into the loop. If you want to see the result look at paulajust.com.ar/dev
    It is in development state.
    Thanks again!

  4. aldolat
    Member
    Plugin Author

    Posted 8 months ago #

    My advice is to not edit plugin's files, because you will need to reapply your modifications when a new version is released.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags