Skip to content

Magenaut

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

search

Exclude Specific Term from Search

August 5, 2022August 4, 2022 by Magenaut

It is possible to search for posts with a specific term by appending the URL with:

Categories Q&A, Wordpress Tags custom-taxonomy, exclude, search, tags Leave a comment

paginate_links() don’t properly work in search.php?

August 5, 2022August 4, 2022 by Magenaut

I’m using this in my search.php template …

Categories Q&A, Wordpress Tags functions, paginate-links, pagination, permalinks, search Leave a comment

how to limit search to post titles?

August 4, 2022August 3, 2022 by Magenaut

Is there a way to limit search to post titles? I know I can modify query.php core file but there must be a way to do it with hooks right?

Categories Q&A, Wordpress Tags actions, hooks, search Leave a comment

Template issues getting ajax search results

August 4, 2022August 3, 2022 by Magenaut

I’m trying to put search results into a div with ajax. The issue is I’m getting errors saying undefined function have_posts() when the the search template is accessed. It also took issue with get_header() which was in the search-results.php but I took it out. Here’s how I have it setup.

Categories Q&A, Wordpress Tags ajax, search, templates Leave a comment

Extending the search context in the admin list post screen

August 4, 2022August 3, 2022 by Magenaut

I have created a custom post type and have attached some custom fields to it. Now I would like to the search that authors can perform on the custom post list screen (in the admin backend) to also be performed on the meta fields and not only look in the title and content as usual.

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

Sticky posts on home page, search, tag and archives without plugin

August 4, 2022August 3, 2022 by Magenaut

I have a question today. I am looking for a solution to make sticky post available on my website. But, i just got it work on homepage with the code below.

Categories Q&A, Wordpress Tags categories, search, sticky-post, tags Leave a comment

How do I search events between two set dates inside WP?

August 4, 2022August 3, 2022 by Magenaut

I am building a WP site with an events feature. The events page was made with custom post types.

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

Customizing Only a Specific Menu using the “wp_nav_menu_items” Hook?

August 4, 2022August 3, 2022 by Magenaut

Thanks to some help on here, I’ve managed to add a custom search box to my main menu… by adding this to my theme’s functions.php

Categories Q&A, Wordpress Tags menus, search Leave a comment

How to search for (partial match) display names of WordPress users?

August 4, 2022August 3, 2022 by Magenaut

I need to create a search page that will display anything related to the supplied search.
i.e. comments containing it, events, posts, CPTs and users with that name.

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

Using meta query (‘meta_query’) with a search query (‘s’)

August 4, 2022August 3, 2022 by Magenaut

Trying to build a search that not only searches the defaults (title, content etc) but also a specific custom field.

Categories Q&A, Wordpress Tags custom-field, meta-query, search Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page9 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