Skip to content

Magenaut

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

wp-query

post_parent don’t work and return 0 page

August 6, 2022 by Magenaut

I’m trying to resume pages on WordPress that have a specific page as the parent page.

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

WordPress custom search form with pre_get_posts not work

August 6, 2022 by Magenaut

I am designing my first theme and I am stuck on the search functionalities of a Custom Post Type.
I created a CPT ‘movies’ and created the archive page with the ‘archive-movies.php’ file in the root of the theme folder. Inside I created a basic WP_Query

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

Using wpdb prepare with a variable, turns it into a big string

August 6, 2022 by Magenaut

I’m trying to get data from a custom table in a wordpress database, so I can show different stuff depending on the product visited (I use a variable for that) it’s a shop.

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

Add dynamic search to paginated WP_Query

August 6, 2022 by Magenaut

I am currently displaying a list of pages with “words” (English learning site) using WP_Query.
I want to add a search field at the top of the list, but in a way that would dynamically (is it AJAX?) modify the list below to display only the records that match with search field.

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

Pagination of a WP_Query Loop in a child-page page template

August 6, 2022 by Magenaut

See edit at bottom.

Categories Q&A, Wordpress Tags child-pages, page-template, pagination, wp-query Leave a comment

display ACF repater field in archive page

August 6, 2022 by Magenaut

I created ACF repeater field for custom taxonomy terms. Repeater consist of two field “Question” and “Answer” . By this way I want to create FAQ section for each taxonomy term.
Thought I can show other custom fields easily in archive field, But I could not succeded with repeater field . Please help me.

Categories Q&A, Wordpress Tags custom-field, custom-taxonomy, loop, terms, wp-query Leave a comment

I need help using pre_get_comments to limit comments in the comments admin screen

August 6, 2022 by Magenaut

I am trying to limit the comments in the comments admin screen to:

Categories Q&A, Wordpress Tags actions, admin, comments, wp-query Leave a comment

WP Query causing timeout

August 6, 2022 by Magenaut

Im trying to show taxonomy names along with their counts for a donut-chart. This is what im doing;

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

How to choose between hooking into per_get_posts or into parse_query

August 6, 2022 by Magenaut

In refactoring my code base I noticed there are two hooks that used for modifying the main query.

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

Utilising an existing page while using the “s” query parameter

August 6, 2022 by Magenaut

I’m trying to load/utilise an existing page template (templates/results.php) while making use of the “s” (search) query parameter. For example: example.com/results?s=lorem

Categories Q&A, Wordpress Tags hooks, templates, wp-query Leave a comment
Older posts
Page1 Page2 … 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