Random ajax load only works with posts_per_page set to -1
Random ajax load only works with posts_per_page set to -1
Random ajax load only works with posts_per_page set to -1
You can set post featured image space with css. like this: img.featured_image{ width: 50px; height: 50px; }
Emojis replaced by ‘?’ automatically
What that error is saying is that $labels is an empty object, so it can’t assign to it. $foo = NULL; $foo->labels = false; // This causes the error See this Stack Overflow post for technical details: https://stackoverflow.com/questions/8900701/creating-default-object-from-empty-value-in-php
I would first put all parent categories into one array – then run through that array and get all child categories and their respective posts. So you could basically build a loop ‘around’ your loop – first loop only queries to a depth of 1 (parent cats) and then the second loop looka a lot like yours, … Read more
Your issue is your foreach loop. Because you don’t manually setup postdata, the current post object is not available in global scope, that is why you cannot make use of template tags or anything else for that matter that relies on the post object. For get_the_author_meta() to work in your current situation, you will have … Read more
Prevent additional top level categories but allow more children
If you are clicking the “submit” button in your form (which I am assuming); it will submit the form performing the default method GET where no method is specified. You need to ensure that you prevent the default submit action. In your JavaScript; you are listening for a change event on the entire form, instead … Read more
why are images not full size?
Get attachments for posts that belongs to a specific category