WordPress.org

Ready to get started?Download WordPress

Forums

AK Featured Post Widget
[resolved] Widget title not linking to category (10 posts)

  1. madelynn
    Member
    Posted 1 year ago #

    My widget's title is not correctly linking to the category. It links to whatever page the user is already on. Any ideas?

    Site still being developed: http://184.172.27.141/~ovinte/blog/sample-page/ I would like "Wine of the Month" to link to http://184.172.27.141/~ovinte/blog/category/wine-of-the-month/)

    Otherwise, great plugin!

    http://wordpress.org/extend/plugins/akfeatured-post-widget/

  2. mrjive
    Member
    Posted 1 year ago #

    Same here, widget title links to the current page. Any hint how to solve it?

    thanks, great plugin :)(

  3. kaser
    Member
    Plugin Author

    Posted 1 year ago #

    So sorry for the late response! I'll look into this and see if I can fix it for you!

  4. kaser
    Member
    Plugin Author

    Posted 1 year ago #

    If you want a quick fix, on line 171 it looks like

    if ( $instance['category'] != "none" ) {
    				$category = '&cat='.$instance['category'];
    			} else {

    if you ad in the $category_id = $instance['category']; line, to make it look like

    if ( $instance['category'] != "none" ) {
    				$category_id = $instance['category'];
    				$category = '&cat='.$instance['category'];
    			} else {

    and then on line 203

    echo $before_title . '<a href="' . get_category_link($category) . '">'.$title.'</a>'.$after_title;

    Changing $category to $category_id

    echo $before_title . '<a href="' . get_category_link($category_id) . '">'.$title.'</a>'.$after_title;

    Then save it and upload it and you'll be all set. This fix will be included into the next version which should be coming out beginning of december :)

    Thanks!

  5. Retories
    Member
    Posted 1 year ago #

    Great thanks this solution works

    Looking forward for the update!

  6. mrjive
    Member
    Posted 1 year ago #

    When do you plan to release the update?
    thank for you work!
    d

  7. kaser
    Member
    Plugin Author

    Posted 1 year ago #

    I want to get my new home page launched before I release it and it's just taking a little longer than expected. Shouldn't be more than a couple weeks now, is there something I could help you with more immediately? You can email me at kaser [at] cssboss.com with any questions you might have.

  8. piantadosi
    Member
    Posted 1 year ago #

    Thanks for this great plugin -- I had same problem with category title link not working and your fix worked. Any way to get the link working if the widget is displaying a custom post type? (It does the same thing -- just links to whatever page it's already on.)

    Thanks again.
    rp

  9. ukmgranger
    Member
    Posted 1 year ago #

    This fix doesn't seem to be working for me?!?
    I'm running 3.5.1 if that helps.

    Any ideas?

  10. kaser
    Member
    Plugin Author

    Posted 1 year ago #

    this has been fixed in the new 1.8 release. Please let me know if any of you have any more problems.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic