WooCommerce uses Custom Post Types for its products and as such uses standard WP_Query to return results on those pages. You can probably use the pre_get_posts()
to modify the query on certain pages or archives.
Related Posts:
- WordPress sharding: which multi-DB plugin to use?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- wp_enqueue_scripts not working in custom theme
- What characters are allowed as a shortcode tag and how should they be sanitized?
- Is there a plugin to show the code tag button on the visual editor?
- Additional, optional fee on Woocommerce Checkout [closed]
- Why does including a file in theme’s functions.php not work?
- OEmbed from Pinterest
- Posts wont expire
- disable active plugins for specific theme
- Add Top-Level Menu that opens URL
- Override Theme CSS with CSS from a plugin
- How to limit 1 image per post on homepage only?
- Something is generating spam pages on my site
- Flickr plugin that will display photos from multiple group pools? [closed]
- Remove filter from WordPress Plugin
- Gutenberg List Extension Block
- How to change ID of an attachment in wp_posts and its related tables correctly?
- Regenerate images with automatic ALT and TITLE attributes
- Making menu link open in new tab?
- Single Must Use Plugins Directory for local development
- ReOrder Post Within Categories plugin with featured image
- How to initialize something in unit test before the init hook being called?
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- add_filter comment_edit_redirect not working
- Global matrix for shortcodes/content for every page
- Advice for a voting / multiple rating plugin for post types other than GD Star Rating [closed]
- How to write a plugin to add users to a mail list
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Force Plugin Updates: “Update Failed: Plugin update failed.” after update one plugin
- Create mobile navigation header with settings integration
- Two text domains in one plugin
- Plugin or method to delete uploads not in media library?
- Add woocommerce variation images in gallery?
- Add a CSS class based on categroy id to archive pages
- Add button gutenberg help
- Access WordPress data from external PHP application.
- Can you use another Profile Builder shortcodes through advanced custom fields
- Comment section not showing correctly
- add input in custom javascript from WordPress pages/posts
- WP Plugins – Use includes to display page content
- Troubleshooting Plugins.php HTTP install path vs. a HTTPS for a single Plug-In
- Save values from a pre_post_update
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Recent posts per category loop?
- WordPress as a data-store?
- How do I use add_action on custom widget?
- How to grab facebook page feed?
- plugin active error
- Keeping and updating ACF and ACF Pro at the same time
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- How to deal with Slow HTTP POST (slowloris) vulnerability
- What is the purpose of WP_CONTENT_URL?
- Control page content visibility based on URL parameter
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Elementor Custom Control: How to get input value?
- download button for audio file in post [closed]
- Print posts category or tag as a formatted journal
- wp_localize_script not passing the data
- Creating a search form and displaying results
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- problem with register_activation_hook in plugin
- should i use GLOB_ONLYDIR to hook add-ons for wordpress plugin
- How to downgrade plugin?
- Minification Plugins break my website
- Build a must-use plugin that tracks when other plugins are activated or deactivated
- What snippet do I need to type to show my ACF field show up on my theme?
- Allow webp use on website but disallow webp as featured image during post creation
- Using sessions or an alternative in a plugin
- redirect to homepage once action is completed
- Can I create a separate admin section for my plugin?
- How to remove default action from a plugin?
- taxonomy_template filter not working on pagination [duplicate]
- WordPress Contact 7 Form – Remove WordPress from the From Sections
- How connect my plugin translation to my page
- EventON – Dequeue Styles
- Pagination not working with pagenavi
- multiple string replace of post’s content for large data
- Building a dynamic web app for questionnaire
- Using WordPress to create a simple web app (SaaS) [closed]
- wp_signon returns user, in popup window, but the user is not logged in
- Searched & tried a lot: Is it Possible to Eliminate Render Blocking Manually
- Creating plugin for changing slug
- WordPress plugin – multiple php files
- Upacking the package… stalls, but installs plugin
- change output location of plugin function using a custom hook
- Internationalization of Blog Posts
- Issues with Post 2 Post Plugin
- WordPress Options-Theme STD (default) value does not work
- Give access only for a period of time [closed]
- How can I save a setting field with multiple checkbox options generated by a foreach loop on a custom wordpress admin page?
- Remove Close Button | Facebook Page Promoter Lightbox [closed]
- Terms id wordpress error
- How to laod wp_enqueue_style to another header i created my self
- how to set approval of admin for wordpress posts submitted by the user?
- Apostrophes replaced by '
- How to save mediaupload multiple URLs as array meta?
- Ajax Load More stopped working (Plugin with repeater template, shows hidden Button)
- WordPress Share Buttons Plugin: How do you make the WordPress Share Buttons Display Vertically?