- This topic has 5 replies, 3 voices, and was last updated 3 years, 3 months ago by
Fernando.
-
AuthorPosts
-
February 4, 2023 at 6:17 am #2521092
aik
good afternoon.
I would like to create different layouts regarding the search.
I have some custom posts [smartphones] I would like that when they search for smartphones the result has a different layout than that of the articles.if it were possible I would also like to differentiate the search based on tags
February 4, 2023 at 8:15 am #2521338David
StaffCustomer SupportHi there,
can you share a link to a smartphone search so i can see what it is doing today?
and can you let me know what the layout change would be ?February 4, 2023 at 10:13 am #2521429aik
https://aikresource.it/?s=honor
this is the link for the smartphone result
it is already formatted, obviously for smartphone searches, but if you search for the title of an article, this is searched for using this format
I would like to have 2 different results pages
one for smartphones and one for articles
February 5, 2023 at 8:43 am #2522275David
StaffCustomer SupportSo how would that work ?
Do you want a separate Search Form just for the smartphone custom posttype ? And where would that be on the site ?February 5, 2023 at 9:35 am #2522314aik
sorry for my english, this is my biggest limitation.
I try to explain my request.

in the theme i downloaded there was a module that was called for all archives and all searches. [selected in red]
I changed the conditions by removing it from the search and setting it as an archive for articles only
for this reason I created a new module (selected in blue) which is used to view the archive and search of smartphones, but this last module is set for all searches.
I wish I could set the search forms based on the tip.
example:
module 1 : articles research, articles archive
module 2
smartphone search,
smartphone archiveI currently have custom archives set up for articles and smartphones but I can’t select custom search.
is there a method?
I hope I made myself clear
February 5, 2023 at 7:59 pm #2522686Fernando Customer Support
Hi Aik,
Perhaps these articles could help:
https://www.wpbeginner.com/wp-tutorials/how-to-create-advanced-search-form-in-wordpress-for-custom-post-types/
https://imranhsayed.medium.com/create-custom-post-type-search-result-page-in-wordpress-fe56966dcce1Once you have your custom search for your smartphones, you can create a custom search template for them.
1. Copy search.php into your child theme. Reference: https://github.com/tomusborne/generatepress/blob/master/search.php
2. Rename it to search-YOUR-CUSTOM-POST-TYPE-SLUG.php
3. Make any adjustments.Unfortunately, this level of customization would be out of our scope of support.
-
AuthorPosts
- You must be logged in to reply to this topic.