Changes between Initial Version and Version 1 of Ticket #60493, comment 2
- Timestamp:
- 02/12/2024 01:05:23 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #60493, comment 2
initial v1 7 7 No, I am NOT using a custom post. All standard, nothing extra. 8 8 9 BTW: To clarify further, I have seen videos on YouTube explaining the Search options in Twenty Twenty Three and it worked fine! i.e; if you choose Posts only it will only show Posts in the search results, but with 2024 setting it to Posts OR Pagesdoesn't even work, it seems to do NOTHING! That's what I am talking about.9 BTW: To clarify further, I have seen videos on YouTube explaining the Search options in Twenty Twenty Three and it worked fine! i.e; if you choose 'Post' only it will only show Posts in the search results, but with 2024, setting it to Post OR Page doesn't even work, it seems to do NOTHING! That's what I am talking about. 10 10 11 11 What I am trying to do is very simple, but maybe I am having trouble explaining it, I'll try again: … … 13 13 Ok, in the 'Search template', in 2024, go to 'Query Loop' then go to 'Settings', as default it is set to 'Inherit query from template'. When you do a search, i.e /?s=any_keyword it will pull anything with the keyword, from Posts AND Pages. 14 14 15 Now, as above, but simpl echange 'Settings' to 'POST TYPE > Post', Save and do a search...16 In my case, it does do anything at all. It looks and feels broken, nothing happens. Same if I set it to 'Pages'.15 Now, as above, but simply change 'Settings' to 'POST TYPE > Post', Save and do a search... 16 In my case, it doesn't do anything at all. It looks and feels broken, nothing happens. Same if I set it to 'Pages'. Is there more to it? 17 17 18 Now, to confirm to myself that there was a problem with the Search template , I installed a free plugin called Ajax Search Lite - to see if I could output Posts ONLY from searches; BUT a *very important* step BTW, I have make sure that in the 'Search template' the 'Query loop' is set to 'Inherit query from template', otherwise same problem as explained above when set to Posts or Pages only (not both).18 Now, to confirm to myself that there was a problem with the Search template (as I understood it), I installed a free plugin called Ajax Search Lite - to see if I could output Posts ONLY from searches; BUT a *very important* step BTW, is that we have to make sure that in the 'Search template' the 'Query loop' is set to 'Inherit query from template', otherwise same problem as explained above when set to Posts or Pages only (not both), it won't work. 19 19 20 So, after installing Ajax Search lite, I setup the plugin to show Posts ONLY, and sure enough, it worked, even with the built-in WordPress Search, when I search, it pulls the Posts only. And one important thing to note, is that I don't even have to use the Search widget from the Aja z Search Lite plugin, meaning that by simply installing this plugin it fixes the issue, as long you set it to display Posts only, or Pages.20 So, after installing Ajax Search lite, I setup the plugin to show Posts ONLY, and sure enough, it worked, even with the built-in WordPress Search, when I search, it pulls the Posts only. And one important thing to note, is that I don't even have to use the Search widget from the Ajax Search Lite plugin, meaning that by simply installing this plugin it fixes the issue, as long you set it to display Posts only, or Pages in the plugin itself (NOT in the Search template). 21 21 22 I am very sorry for the very long post, but unless I overlooked something simple, as far as I am concerned the 'Search template' in 2024 is broken when set to show Posts or Pages it doesn't do anything at all.22 I am very sorry for the very long post, but unless I overlooked something simple, as far as I am concerned the 'Search template' in 2024 is broken when set to show Posts or Pages—it doesn't do anything at all. 23 23 24 I'll attach a screenshot, please let me know if this setting in the 'Search template' is supposed to output Posts (and yes I also played with the Filters - it made no difference).24 I'll attach a screenshot, please let me know if this setting in the 'Search template' is supposed to output Posts only (and yes I also played with the Filters - it made no difference), OR if when set to Post, it's supposed to do nothing at all!? 25 25 26 26 https://snipboard.io/sJ7pDF.jpg
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)