This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user has a view that is listing their products but wanted to filter this view to only list the featured woocommerce products.
Solution:
For this to work you must first create a view that would list all the products.
Then you would add the following to your functions.php file
Thanks for the work. Are you referring the result shown in image 1?
I'm so sorry to say but do not want just a name for featured image I want to use featured products in slider with clickable url image. Just like the featured product section on home page. (see image 2)
I've developed this section but it's not dynamic. I have to add the product each time in this section manually.
The page was just an example. I created the view and only set it to list out the product title.
What you need to do is create a view that will display the products how you want it. It was just an example to show that the code to allow the view to display the featured product is working.
Have you already setup a view on how you want the products to display?
Because I constantly update website. I need the solution for this so I have temporary show featured products on my home page.
You have all the scenario and even access to webpage kindly provide the solution for this problem.
Thank you
If you are not able to resolve it kindly transfer me to NIGEl from Europe, so far one of the best supporter in your team.
This code is to be added to your functions.php file after you've created your view to display the products. Once this custom filter has been added then replace the view id in the code with the ID of your created view. This will cause that view to ONLY display your products that are marked as featured.
Is it that you're not sure how to create this view ? Please let me know so that I can provide assistance with this as well.
I'm was under the impression that you've already created this view but just wanted to filter for the featured items.