I need to get the featured image outside the loop. This is so that I can have a different full-screen background image for each page, set by the featured...
I have support ticket system which i have built using wordpress. The basic functionality is that when a “ticket” is created, it creates a post. When an admin replies,...
Can someone explain the difference between WP_Site_Query and WP_Network_Query in WordPress 4.6? WP_Network_Query() : Core class used for querying networks. WP_Site_Query() : Core class used for querying sites. WP_Term_Query()...
I’m updating a plugin of mine and am have a hard time figuring out the “best way” to build in a specific bit of functionality. The plugin allows users...
I am having an issue that i couldn’t find on google and elsewhere. To put problem in the context. I am making a wordpress site where user can put...
General Info I used the plugin WP Types (wp-types.com) to create a custom post type called “artist“. In WP Types you can also set another post type as parent...
Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
I want to know which filter hook I should use that performs faster. I did try both several times and I noticed that posts_search is a bit faster than...
I am about to develop a piece of code for my site to display the most popular posts of the day that are X days old. I would like...
I’m trying to create some custom REST API endpoints which get products with some special conditions, for example, one endpoint for featured products. I tried to use the wc_get_products...
I’m currently working on a custom loop/query where I need to add the permalink of a post to the array of posts I’m retrieving from the DB. Sadly get_permalink()...