Tagged Questions
0
votes
2answers
200 views
Insert taxonomy slug into loop class
I am a loss here since I have looked at dozens of tutorials and posts all over the internet on how to get the slug for a taxonomy and nothing I try seems to work. The taxonomy shows up fine when I ...
0
votes
1answer
159 views
Custom Queries - Child Categories not showing up
What I'm Doing
I have a cities category and normal categories. Right now I have them filtering by category, then when the user clicks a city it will filter by category AND city
query_posts(array( ...
0
votes
1answer
669 views
Custom Post Type Query W/Category Dropdown
I'm having a bit of trouble getting a custom post type query working coming from two drop downs. Let me show you what I'm using:
The Form:
<?php require($_SERVER['DOCUMENT_ROOT'] . ...
6
votes
5answers
4k views
Wp get all the sub pages of the parent using wp query
Here is my code
$my_wp_query = new WP_Query();
$all_wp_pages = $my_wp_query->query(array('post_type' => 'page','post_parent'=>$parid,'orderby'=>'title','order'=>'ASC' ));
It displays ...
1
vote
3answers
290 views
will post_id ever change? Can I safely use post_id for custom queries?
What are the best practices for using post_id? Can I use this safely in my templates to call specific posts, or will these post_id's ever change?
The reason I ask is that randomly today the ...