I have url http://domain.com/real-estate-news/phuket-luxury-property-in-high-demand-ms Where "real-estate-news" is category and "phuket-luxury-property-in-high-demand-ms" is the post name . when I print $wp_query->query_vars['name']; it gives the post slug and $wp_query->query_vars['category_name'] gives the category slug.
I want to generate a new url like http://domain.com/real-estate-news/phuket-luxury-property-in-high-demand-ms/xyz
and want to get xyz in query var like
echo $wp_query->query_vars['name']; // print "phuket-luxury-property-in-high-demand-ms"
echo $wp_query->query_vars['category_name']; // print "real-estate-news"
echo $wp_query->query_vars['section']; //print "xyz"
How to add section query var in wordpress please help me