I've been hacking away at the Category Shortcode plugin and have successfully added several new options. I've noticed, however, that the original code has an odd side effect, and while I haven't been able to fix it, I've been able to narrow it down to a specific function used in the plugin.
The "Edit," "Permalink," and "Trackback" links on the parent page are those for the last displayed child page, and not for the parent page. You can see it in action here:
You'll notice that the links at the bottom that should point to the "/shop" page are instead pointing to the "Wobblecog Necklace" post.
The problem *seems* to be with the
set_postdata() call (first used on line 94 in the original code). The surrounding code looks a bit like this:
90: global $post; ... 93: foreach($rdcsc_posts as $post) : 94: setup_postdata($post); 95: $rdcsc_excerpt = get_the_excerpt();
I've tried renaming certain variables or using different template tags, but nothing so far has worked. Here's where I hope you lovely folks come in! :) Is there a way to fix this problem?