Modifying Wordpress search function to coordinate with Yoast SEO - search

I am attempting to incorporate search functionality for a WordPress website that contains a multitude of posts. Each post title is a random number, but I have manually inputted the titles into the SEO Title field using the Yoast WordPress SEO plugin. The posts themselves have no other identifying material (e.g., tags or content). When integrating the search bar, I noticed that I was not receiving any results as the search is utilizing the original random number title and not the SEO Title. I’ve explored a few of the custom search plugins, but none of them permitted me to add the SEO Title field within the search criteria. Any suggestions on how I can alter the search function to focus on the SEO Titles and not the original title?

Try using Relevanssi.
The Yoast SEO title is stored as a custom field on the post. You should be able to configure Relevanssi to search that field. The nice thing here is that this will modify WP's built-in search so you won't have to make any changes to the theme.

Related

Kentico - Content Only page & smart search result

I have a custom page types (Content Only) for Locations. Then I have a landing page (/company/locations/) with repeater to list all locations and their details. Things work well so far. Now, after adding the smart search, I notice that if I search a location name like "san francisco", the landing page didn't show up in search result, but the content-only page showed with a URL like this /company/locations/san-francisco. The thing is, this URL results in 404 since that page doesn't really exist. What should I do? Should I re-create the page type and change it to a regular page instead of content only before it's too late? Or is there a way to make individual location url (/company/locations/san-francisco) work - considering we can't specify a page template to go with content only page type? Thanks!
There are multiple types of Search indexes in Kentico.
"Pages" scans the data of a document, such as any webparts+properties, editable text, form data, etc. They do NOT scan the rendering on the page though, it doesn't catch any Repeaters (what you're using).
"Page Crawler" will literally load the page, and scan all the content in the page. This will catch Repeaters and dynamic content like that.
Knowing this, you have a couple options.
Use Pages, then Modify the Smart Search Result and add some transformation logic to say something like the below
The Link
Use Page Crawler, tell it specifically to only index the /company/locations.
Use Page Crawler, and also a custom smart search indexer so you can exclude the header/footer or other areas out of the content (it's a bit more advanced)
If you don't want that URL to show then simply exclude those page types from that search index. But if you want them to specifically show, then create a detail or selected transformation for that /company/locations repeater to display when someone navigates to it from the search. This will also be good for google and other search indexes if you plan to have specifics for each location.

Joomla search in specific category

For my website I have a category which contains articles related to FAQ items. The standard search function searches the whole site and offers no personalization.
I need to search only in one specific category with a search module in Joomla , what would the easiest way to do that?
I have tried Smart Search, unchecking all other categories and indexing again. Still, results from other categories show up in the Smart Search module. Also I have seen the Filter option in the Smart Search module, but I haven't found out how that should work.
I am using Joomla 3. Any suggestions are appreciated!
It seems I have solved my question myself.
My solution was to add a filter at the Manage Smart Search page on the Search Filters tab, then choosing the category I wanted to search in.
Then, in the smart search module you choose that particular filter and you will only search in that particular category!

Exclude certain sites when using a label in Google Custom Search

I'm implementing Google Custom Search on a site I'm working on.
The website is divided in subsites, with a parent site. It's done like this:
- parentsite.com
- parentsite.com/childsite1
- parentsite.com/childsite2
- parentsite.com/childsite3
- parentsite.com/childsite4
When searching the site, I want the users to be able to filter out the results for each child site, and this I've done with refinement labels (so when you press the Childsite 1 label, you will only get results from parentsite.com/childsite1/*)
My question is: I also want a label that only gives the user results from the parent site, but not from any of the child sites. Can I in some way also make the refinement label exclude certain url patterns?
you can exclude urls in advanced site management by using a list of urls with one url per line. There are further options but the url is treated like a wild card so any url containing the part url you list will be excluded
start here and choose the CSE you own and wish to modify
https://www.google.com/cse/
2.from bottom of ("Basics TAB") under the heading ["sites to add"] you should find an "advanced" link. its fairly intuitive from their bulk or one at a time...
check here for more info on url patterns
https://support.google.com/customsearch/bin/answer.py?hl=en&answer=71826

How to modify opencart basic search module to a more advanced one?

I am pretty new to opencart and I want to learn how can I create a more advanced search function.
For example I have products in my store, some of them are blue and some of them are red.
How can I specify or where I can specify a product's color (but not in the title, something like an attribute)?
And after that how can I search for red products?
I do not want to search by the keywords. I want a tab where to select the color and if I choose blue the search will show me all the blue products.
I hope you understand what I wish.(and can you please give me some code examples: where to add what to add to achieve what)
Thank you!
Normally, you would use Product Tags for this (field is under Product description on Product Page in Admin > Catalog > Products). You could have problems with very short tags 3 characters or less. See this post for more info:
mysql fulltext MATCH,AGAINST returning 0 results
You would add tags to your products like: red,black,brown,leather,s,m,l,xl small, medium, large
Then you could search any of the terms
[EDIT: in response to comment #1]
I would imagine that you just type multiple terms into search box:
'brown','large'
then all products that have (any? both?) of these tags returned.
You could use a Tag cloud or similar module to display tags on your pages, also you could use these terms in search field. If you search for 'brown', all products that have this tag will be returned.
You may also consider a third party extension for a more advanced search, check Opencart site's extension section.
If you want to modify/improve the search functionality yourself, you'll need to tinker with SQL queries in catalog/model/catalog/product.php
Opencart Search is considered by many to be one of the weak points of this package. There have been discussions on Opencart forums on this matter.
Just see how it works for you with the out-of-the-box setup, then if you need more functionality, look for an extension that does what you want, hire a programmer or code it yourself.

unique permalink for multiple category

How to make unique permalinks even if the post included in multiple category ?
Custom Structure /%category%/%postname%
multiple permalinks for same article effecting the facebook like count
presently seems to be like this, how can make this only for one ?
You can use help from "SEO plugins", just search on the wordpress plugins.
recently I'm using Yoast SEO plugin, http://wordpress.org/extend/plugins/wordpress-seo/
to customize the permalink with categories.

Resources