WordPress.org

Ready to get started?Download WordPress

Forums

Featured Page Widget
links to posts broken - it doesn't pick up the category or post (3 posts)

  1. MouseClicks
    Member
    Posted 4 years ago #

    I've got this mostly working except there's one MAJOR problem. My links to posts are broken because this doesn't pick up the category or the post number in the links.

    For example the post is REALLY here:

    http://www.sitename.com/uncategorized/1/hello-world/

    But the links in this featured plugin only give me:

    http://www.sitename.com/hello-world/

    So I get 404's on any clicks to the posts from the featured post area on the sidebar. Any ideas how to fix?

    http://wordpress.org/extend/plugins/featured-page-widget/

  2. doctorcilantro
    Member
    Posted 4 years ago #

    Same here, anyone help with the code?

    ` function makelink($id, $text, $target = false) {

    $output = '<a href="' . get_page_link($id) . '" ';

    if ($target) $output.= 'target="' . $target . '"';

    $output.= '>' . $text . '</a>';

    return $output;

    }`

  3. GrandSlambert
    Member
    Plugin Author

    Posted 4 years ago #

    Version 1.4 fixes this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic