get_rpwc2_order
-
Hi,
I’d love to use the
get_rpwc2_order($post_type, $term_id);
function, but I cannot seem to make it work properly.The problem is, all elements in the array $ranking have the same ID, which is of the current post.
<?php $post_id = get_the_ID(); $post_type = get_post_type($post_id); $term_id = get_the_terms( $post_id, 'category' ); $ranking = get_rpwc2_order($post_type, $term_id); foreach ($ranking as $id ) { $post = get_post ( $id ); setup_postdata( $post ); generate_do_template_part( 'archive' ); } ?>
I would appreciate your help =)
- This topic was modified 2 years, 11 months ago by .
- This topic was modified 2 years, 11 months ago by .
- This topic was modified 2 years, 11 months ago by .
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_rpwc2_order’ is closed to new replies.