Linked Questions

0
votes
0answers
16 views

Query posts by switch

I need your help to add a case to a switch in my theme to order posts. My theme uses a query_post: query_posts( $query_string . $orderby ); In the loop to order generated posts. The query uses ...
0
votes
1answer
43 views

Hide posts belongs to few categories in homepage

Currently I am using all the latest posts are displaying in the homepage settings. But now I need to hide few specific categories to be displayed in the homepage. All the post belongs to those ...
0
votes
0answers
25 views

Use one column per category

I dont typically do wordpress development, though I am a PHP developer, so I get those concepts. I apologize if this has been asked and answered already. I looked through the questions as they ...
0
votes
1answer
31 views

Modifing archive query affects show post count function

I'm trying to modify the archive query of archive page with this function hooked to pre_get_posts action hook. // Load our function when hook is set add_action( 'pre_get_posts', ...
0
votes
0answers
20 views

Sort by manipulated meta_key

I have a page where I sort my posts by a custom field called "price". The problem is that the field values come with commas because that's the way they should display on the front-end (e.g. 1,000,000 ...
0
votes
1answer
44 views

How to display 3 post per slide

I need to create a sliders contain 3 post title for each slide. I can create it by one title for each slide but not 3 posts Could you please help me This is My code <ul class="overview"> ...
0
votes
0answers
42 views

How to make multiple loops (of different categories) on Homepage but with one echo code

My homepage has 7 similar loops in it. The only differnce between them is the number of posts and the category id. Everytime I want to change the HTML code inside the echo I need to change it 7 times. ...
0
votes
0answers
51 views

Some posts appear in duplicate with paginated query

I'm querying a custom post type with some custom post meta, and then output the results. This is the query: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $properties_query = array( ...
0
votes
3answers
60 views

loop query exclude meta_key with meta_value

Hi I use a loop like this: // show all active coupons for this store and setup pagination $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( array( 'post_type' => ...
0
votes
0answers
42 views

Function to draw random image from specified category destroys site logic - why?

I'm trying to create a function in my child theme's functions.php file that will draw a linked image on every page. The link has to have a class, and the image must also have a class. The image is ...
0
votes
0answers
231 views

Ajax Button to load more Posts into a timeline

I am setting up a timeline page for a customer and so far i have designed the timeline and i am using 2 loops to place the posts in 2 columns (left and right) where the first post is located at the ...
0
votes
1answer
26 views

How can I query all available public post types and taxonomies?

I have been looking for this but everyone that is posting a solution is just returning available menu items from a specific menu via wp_get_nav_menu_items( $menu, $args ); or something similar. ...
0
votes
1answer
46 views

Query Products & Store IDs in array

I'm attempting to query Products in WooCommerce and return their IDs as an array that can be used to filter conditionally. I'm using ACF Pro to add custom fields into the product, for which I'm then ...
0
votes
1answer
25 views

Creating a unique, linked list of tags from a specific category?

I am hoping to make a custom tag widget which displays all tags from a specific category. The code I am currently using is working correctly, but it is displaying duplicate tags. I would like to ...
0
votes
3answers
85 views

Many plugins making WordPress run slow by design?

So this is what I've read: Many plugins might get WordPress slow if they are activated Many plugins might get WordPress slow even if they are not activated!? An example Let's say I build a large ...

15 30 50 per page