Forums

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

  1. madelynn
    Member
    Posted 6 months 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 6 months 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 6 months 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 6 months 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 5 months ago #

    Great thanks this solution works

    Looking forward for the update!

  6. mrjive
    Member
    Posted 1 month ago #

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

  7. kaser
    Member
    Plugin Author

    Posted 3 weeks 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.

Reply

You must log in to post.

About this Plugin

About this Topic