WP_Query support needed
-
Hi everybody, I really need your support to modify some code of the wordpress theme i am currently using.
Basically it is a travel blog and in home page i have some featured posts but when user click on “see more” button WP create a page with ALL posts i created. This behaviour is a total mess i would show in this page only some posts that I decide. In the proper .php file that contains the wp-query i find:// The Query $args = array( 'post_type' => 'destination', 'posts_per_page' => 24, 'orderby' => array( 'menu_order' => 'ASC', 'parent' => 'ASC', 'title' => 'ASC' ), ); $args = is_destination_archive( $args ); $the_query = new WP_Query( $args );
How Do I have to modify the code to show (for instance) just two (or more) specific posts that i consider relevant?
Let’s say that those two posts have as slug: seychelles and maldive or another that i want to recall with its URL. is it possible?
Thank a lot to everybody that helps me.
Bye
- The topic ‘WP_Query support needed’ is closed to new replies.