Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119958

webvitaly on "[Plugin: Page-list] subpages doesn't work all the time"

$
0
0

Thank you for your feedback.
I have one more question.

Should I change everywhere in the plugin's code?

  • this global $post to global $wp_query
  • this post->ID to $wp_query->post->ID
  • this post->post_parent to $wp_query->post->post_parent

Or I should change it only in one place (for [subpages] shortcode only)?


Viewing all articles
Browse latest Browse all 119958

Trending Articles