Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

wp-query

Order posts by tags count?

August 4, 2022August 3, 2022 by Magenaut

I am trying to order posts by tag count. I want to order posts with no tags first and posts with highest count last.

Categories Q&A, Wordpress Tags order, query, tags, wp-query Leave a comment

How to use the_posts_navigation for wp_query and get_posts?

August 4, 2022August 3, 2022 by Magenaut

WordPress have the_posts_navigation function since 4.1.0. But I don’t know how to use with wp_query or get_posts. the following code is in a template file of page.
wp_query method:

Categories Q&A, Wordpress Tags get-posts, navigation, wp-query Leave a comment

WP_Query: Why is sticky post not first item in loop?

August 4, 2022August 3, 2022 by Magenaut

I’ve got a custom WP_Query loop based of meta_value variables:

Categories Q&A, Wordpress Tags loop, posts, sticky-post, wp-query Leave a comment

How to query posts based on lat-lng coordinate as post meta?

August 4, 2022August 3, 2022 by Magenaut

I’m planning a custom WordPress theme where the Custom Post Type (CPT) will have latitude and longitude coordinate as it’s meta value. The latitude and longitude will be displayed as a Marker in a Google Map.

Categories Q&A, Wordpress Tags google-maps, meta-query, wp-query Leave a comment

WP_Query and next_posts_link

August 4, 2022August 3, 2022 by Magenaut

I cannot figure out how to make next_posts_link() work within my custom WP_Query. Here is the function:

Categories Q&A, Wordpress Tags loop, navigation, wp-query Leave a comment

query_post by title?

August 4, 2022August 3, 2022 by Magenaut

is it possible to create a loop of posts using WP_Query or query_posts using the title?

Categories Q&A, Wordpress Tags query-posts, title, wp-query Leave a comment

how to filter by last name for custom post

August 4, 2022August 3, 2022 by Magenaut

I have a custom post type (speaker) and I would like to load the list of speakers sorted by last name. I can’t seem to figure it out. I tried the code from this post: https://stackoverflow.com/questions/16416217/wordpress-orderby-last-word-in-title

Categories Q&A, Wordpress Tags custom-field, custom-post-types, wp-query Leave a comment

why ignore_sticky_posts in sticky post query

August 4, 2022August 3, 2022 by Magenaut

We all know that ignore_sticky_posts is used to exclude sticky post from your custom query.

Categories Q&A, Wordpress Tags sticky-post, wp-query Leave a comment

Meta query with string starting like pattern

August 4, 2022August 3, 2022 by Magenaut

I have a custom WP_Query with the following meta_query:

Categories Q&A, Wordpress Tags custom-field, meta-query, wp-query Leave a comment

How to limit the number of posts that WP_Query gets?

August 4, 2022August 3, 2022 by Magenaut

I have been researching on Google and WPSE and the only thing I see repeatedly is to use showposts, that is deprecated.

Categories Q&A, Wordpress Tags posts, query, wp-query Leave a comment
Older posts
Newer posts
← Previous Page1 … Page12 Page13 Page14 … Page25 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress