I want to add a child-menu item titled Search. This would lead to a page that allows the person to search for items in specific categories or post types. For example if they click the search link off of the blog page it would send them to a page that searches only blog related categories (News, blog, etc.) and if they did so off of a video page they would search only video categories (episodes, documentaries, etc.)
Is there a native shortcode for the wordpress search function that I can add to a page that also has the ability to specify the categories to search in (only on the admin side) so the user doesn't know their search is being limited?
I would also like it to display the search results right below the search box so if they want to seach again they can.
WP Search http://wpsear.ch/ has that ability.You can create pages with shortcode for custom search pages.
Related
Some of product posts on my friends shop page based on WooCommerce are only visible as search results in google - they somehow are not present neither on shop page, nor could be searched for using search form.
Using flatsome child theme, haven't noticed any strange differences in product posts in wp-admin, any idea what's wrong?
Product not displaying in search form nor shop page:
Product displaying OK:
Any ideas what might be causing one of those not display on shop's page itself, but being present in google results (products page exists, it somehow is not seen by loop)?
I have a page containing a set of images linked to other pages. How can I make each of the linked pages a separate blog?
To give you some more context, each image represents a challenge that I set myself up to and I would like to have a separate 'blog' for each challenge to document my progress. So far I have managed to link pages together and navigate from the page containing all the challenges to the page containing the details about 1 single challenge. However the latter page is not a blog so I cannot add new posts to the page. If I try to write a new blog post it gets added above the challenges(list) page
This is a link to the page that I am refering to.
Thanks in advance for your help
What you need to do is use categories for your posts - like Challenge One and Challenge Two - and then your posts will be automatically organized into category archives. Add a third category - called All Challenges - to all the posts and that category archive will list all posts in all three categories by chronology.
The URLs to the category archive pages will be something like this, depending on your category names and slugs, and how you set up your category base in Settings>>Permalinks.
example.com/categories/challenge-one
example.com/categories/challenge-two
example.com/categories/all-challenges
Link those category archive URLs from your images on your main page that has a gallery of images for each challenge post category.
You can make up custom category templates for each category, so the layout and design can be different.
See
https://codex.wordpress.org/Using_Permalinks#Category_base_and_Tag_base
and
https://make.wordpress.org/training/handbook/user-lessons/categories-vs-tags/
and
https://codex.wordpress.org/Category_Templates
There are multiple ways you can achieve this in WordPress. Let me tell you the easiest one:-
Using Post Categories
Follow the steps below:
Step1: Break your challenges into different categories, for example Challenge 1, Challenge 2, and so on... You can easily do that by creating and choosing the right category while writing a post.
Step2: Go Settings->Premalinks in your WordPress dashboard and choose "Post Name".
Step3: Now you have to find the new links for your challenge images. You can find these links in Post->Categories tab within your dashboard. Once you are in the categories browse page within your WordPress dashboard, just hover over the category whose link you want and you will see a "View" tab which will take you to that particular category page. This category page will show only the posts that you have published under that particular category.
Step4: Once you have the category link with you just update it in the respective challenge image link.
I hope you will be able to resolve your issue with this.
Hej there!
I just did setup Woocommerce successfully in my custom template and everything is working fine — except for the search results layout. When I do perform a search through the very own Woocommerce product search widget, I end getting my results on the standard search results layout, instead of the archive page used for products by the shop plugin.
Category displaying is fine - it uses the archive page (shop grid), tags too, uses the archive page (shop grid). The only problem resides on the widget search results.
The search URL is fine as well... ?s=keyword&post_type=product
Thanks!
Cospefogo.
Well... Problem solved.
After trying to narrow down the problem I did find the cause: I had a obsolete function in my functions.php used to force Wordpress to search on all custom post types, all taxonomies and relevant meta data fields.
This function had a not-dynamic list of targets for the search inside and the custom post type "product" was not present in the group. This is the reason why my search using the Woocommerce product finder widget was being altered.
I removed this problematic function and everything went back to normal.
Thanks for your attention!
Cospefogo.
So here's my dilemma...
I'm creating a site for a client using Wordpress where users can search for members based on member categories. For example, there's a Music Category, with multiple music subcategories.
When you hover over the Music navigation bar, there will be the subcategories. If you click on the subcategory it SHOULD search for members that have that subcategory.
The members search page is its own page with a form on it (I'm using Buddypress for anyone who knows what that is).
Is there a way that I can send data to that form and submit it via the navigation link?
Or am I stuck creating a page for each subcategory with its own members loop??
Thanks for the help in advanced!
If the form submits with a GET request, you can easily forge the corresponding URLs and associate them to the links.
If POST is required, you could change the references to $_POST into $_REQUEST and then create the links.
I have 2 custom fields in my WordPress system when creating new posts. One is called homethumb (is the title of an image) and another called description.
I would like to edit the RSS feed so it shows the image and the description rather than the complete post.
But I don't know how to do this. I would like to fetch that RSS with simple pie to integrate it on another website (sort of auto-submit system).
You also have
do_action('rss_item')
that runs in the loop for every item in the RSS feed.
Hook in to that and output anything extra you need in to the feed item.
To show the excerpt instead of the entire article, go to "reading" in Settings section of your admin menu and half way through the options there's a setting to use excerpts instead of full text.
No plugins required. Just a little custom programming.
Custom fields for Feeds Wordpress plugin
This puts images or videos into your feeds through the use of custom
fields. You can alter the custom field Keys and what is displayed.
Update 11/27/2015: The plugin is old, but the site says it still works
I found some tutorials on how to add things to your rss reader, so I fixed this.
it's in french -> http://www.webinventif.fr/wordpress-ajouter-du-contenu-dans-son-flux/
Here is another option if you want to display anything other than images and videos in your feed: http://wordpress.org/extend/plugins/rss-custom-fields/
All of your custom fields will now be displayed in your feed.
Further options to be able to select which custom fields display in a feed will be available in subsequent releases of the plugin!