wpsmith / genesis-sandbox-featured-content-widget

Genesis Sandbox Featured Content Widget. Based on Nick Croft's Genesis Featured Widget Amplified for additional functionality which allows support for custom post types, taxonomies, and extends the flexibility of the widget via action hooks to allow the elements to be re-positioned or other elements to be added.
39 stars 21 forks source link

Read more links to wrong URL #42

Closed mbootsman closed 10 years ago

mbootsman commented 10 years ago

When using the page setting, and showing the excerpt, featured image and read more link, the read more link links to a wrong URL. The featured image is correct, the excerpt is correct, but the read more link points to a random post.

Using this code to add excerpt to a page:

add_action( 'init', 'nstrm_add_excerpts_to_pages' );
function nstrm_add_excerpts_to_pages() {
    add_post_type_support( 'page', 'excerpt' );
}

When disabling all other widgets on the page, I get the same behaviour. When using content limit, the read more link has the right URL.

Any idea what might go wrong and how to solve this?

Using plugin version: 1.1.8 Genesis version: 2.1.2

mbootsman commented 10 years ago

Self solving skills improved. I was using a filter on the_excerpt, where a wp_reset_query() was invoked. Removed that and it works.

Closing ticket.