Good morning. I am trying to query various WordPress pages, using public query variables, for example http://dmkim1979.ru/?p=37 // single post http://dmkim1979.ru/?page_id=40 // single page But I don’t understand how...
I have a wordpress installation and I need this query on every post: select post_id, meta_key from wp_postmeta where meta_key = 'mykey' and meta_value="somevalue" I have 3M rows on...
i’m working with search queries in wordpress and i’ve noticed that in the original queries terms are between curly brackets and numbers … like this : wp_posts.post_title LIKE '{30d0e4b86a2a793010a75740f60810aff6b57f6d18edc10be7ca6dc158e40c06}11{30d0e4b86a2a793010a75740f60810aff6b57f6d18edc10be7ca6dc158e40c06}'...
I am trying to link out from the WP admin to view posts in a specific way. The url structure for this is example.com/post123/?my-preview=456 /post123/ is the regular permalink...
I have a custom post type named domicile. Each post (domicile) has an owner (not the author). Owners are users with a custom role. I store the user id...
I’m am displaying the last 5 posts of a custom post type ‘show’. This gives me the latest post first. <?php $args = array( 'post_type' => 'show', 'posts_per_page' =>...
I would like to set a site’s front page to be a single post from a custom post type. I have been able to alter the request for my...
Currently, the posts of my website are ordered alphabetically by title: /* Order Posts Alphabetically */ function prefix_modify_query_order( $query ) { if ( is_main_query() ) { $query->set( 'orderby', 'title'...
I’d like to set up a custom search page that does the following: User checks off several items in a form that he’d like to see returned in his...
I want to get Terms by IDs with IDs order. But that doesn’t working, WP automatically change the order. My code- $catsArray = array(159, 155, 143, 153, ......); $series...