rags02
Forum Replies Created
-
So far in orgSeries-utility.php, line 49…
changed:
$args = ‘post_status=any&include=’.$postids;to:
$args = ‘post_status=any&include=’.$postids.’&post_type=any’;… this allows for the inline nav list, meta data in posts, and the “Series Part” within the metabox to all function correctly. Hmmm…. maybe if query_posts() was used instead of get_posts(), the get_series_order() function could include the $args (array) as a param and would be a bit more welcoming for custom post types. Or do something similar to your get_series_ordered() function which is very accommodating for query options…
I’ve noticed a couple other random quirks with custom post types and will update as I find solutions… hopefully helps someone else out there.
thanks for checking in and for the few pointers. yup, doing my best to not touch your core files so updates aren’t an issue. i thought the issue might be in the default arg’s for some of the WP taxonomy queries, but so far, that’s not the issue. whatever i find i’ll post here for other users and for your reference. great code btw… easy to read/navigate… well commented and very logical.
@nerrad, i’ve made adjustments to the source code to include both pages and a custom post type i’ve generated. the archive page for listing a “series” lists all the series posts (ie: /series/my_new_series/) however the meta information and in-post series list/navigation is not “grabbing” the series. as far as i can tell it’s the get_the_series() function that uses the wp_get_object_terms() WP function…
for instance, if i have a series within a custom post type, when i go to a post within the series, it shows the navigation for the series, but only the series name, not the posts/pages (in the unordered list).
also in the meta, every entry shows “part 1 of ##” regardless of what number it is in the series (i can’t get the series number to update in the metabox either… always shows “1”).
terms seem to be updating OK in the database but i am clearly missing some pieces to this puzzle. any pointers would be greatly appreciated.