Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60493, comment 2


Ignore:
Timestamp:
02/12/2024 01:05:23 PM (3 years ago)
Author:
rawdolphe

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60493, comment 2

    initial v1  
    77No, I am NOT using a custom post. All standard, nothing extra.
    88
    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 Pages doesn't even work, it seems to do NOTHING! That's what I am talking about.
     9BTW: 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.
    1010
    1111What I am trying to do is very simple, but maybe I am having trouble explaining it, I'll try again:
     
    1313Ok, 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.
    1414
    15 Now, as above, but simple change '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'.
     15Now, as above, but simply change 'Settings' to 'POST TYPE > Post', Save and do a search...
     16In 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?
    1717
    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).
     18Now, 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.
    1919
    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 Ajaz 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.
     20So, 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).
    2121
    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.
     22I 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 Pagesit doesn't do anything at all.
    2323
    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).
     24I'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!?
    2525
    2626https://snipboard.io/sJ7pDF.jpg