I started to work on one website after another developer and there is problem with his “popular widget” which is basically showing 3 random posts from category. There is...
(Update: Please see the edits far below.) The code: function itsme_better_editions( $query ) { if ( $query->is_category() && $query->is_main_query() ) { $query->set( 'post_type', array( 'post' ) ); $query->set( 'tax_query',...
So I’ve been trying for a hour or so now to list comment by it’s ID. I’ve tried the get_comment($id, $output) function but it didn’t work well, so I...
I would like to display a dropdown on the homepage which contains [most popular, most recent, trending] and when a user selects on of them the posts are page...
I’m creating a plugin with some kind of offers that users can publish. User, in his custom administration panel, can managed his own offers. Offers are free and premium....
I tried the following phpMyAdmin query to merge my category 112747 into my category 112748: UPDATE `wp_term_relationships` SET `term_taxonomy_id` = 112747 WHERE `term_taxonomy_id` = 112748; It did not work....
I’m trying to create a custom taxonomy.php page where my users can refine search into that context. I’ve tried to create a kind of loop like: <?php if(!empty($_GET['ending'])) {...
The following scenario is entirely fictitious, but it illustrates what I’m working on perfectly. Imagine that you have a school syllabus set up in WordPress. The students can turn...
I want to filter my custom posts (pump) with a custom filter form on it’s archive page (archive-pump.php). So, I wrote the form markup: <form method="GET"> <label>Series</label> <?php if(...
I recently discovered Scribu’s Posts 2 Posts plugin, which seems to be exactly what I was looking for in order to connect pages and posts for a big editorial...