Query posts by custom post type and custom taxonomy

I am writing a custom loop query to filter through a custom post type and custom taxonomy. I have replaced any variables with static values for the purpose of showing you what result I want. $args = array( ‘manufacturer’ => ‘Keystone’, ‘post_type’ => ‘rv’, ‘category_name’ => ‘new’, ‘rvtype’ => ‘fifth-wheel’ ); $loop = new WP_Query($args); … Read more

Removing the “Popular Terms” area from the Taxonomy Edit Screen in the Admin Area

Personally I really dislike how wordpress shows all the “popular terms” in different sizes on the taxonomy add/edit screen in the admin area. Does anyone know of a way to either remove this entire area completely by adding code to your functions.php file and/or how to just change this specific area so that none of … Read more

How to retrieve the value stored in a multi-dimensional array and SUM the entries?

I’m trying to retrieve multidimensional values stored in user_meta where the meta key is my_posts and the meta_value is : a:3:{i:0;s:2:”23″;i:1;s:2:”20″;i:2;s:1:”9″;} Somewhere in the admin page i want to show the sum of the selected posts which are stored in the value above…. 3 Answers 3 The value is serialized, if you retrieve the meta … Read more

echo post-permalink without http and www

I have this line … <div class=”permalink”><?php the_permalink(); ?></div> and the result on my page looks like this … http://mysite.com/whatever/post-or-so I guess it could also look like this … http://www.mysite.com/whatever/post-or-so However I’d like to have just mysite.com/whatever/post-or-so without the http:// or www in front of it. What is the best and easiest way to do … Read more

Deleting data from a custom table in WordPress

I am trying to delete records from my custom table but it does not delete anything. Here is my code: <?php global $wpdb; $retrieve_data = $wpdb->get_results( “SELECT * FROM wp_paypal” ); // some code to display here… ?> <form method=”post” enctype=”multipart/form-data”> <td><input type=”submit” name=”delete” value=”Delete” /></td> </form> <?php $myid= $retrieved_data->id; if (isset($_POST[‘delete’])) { //global $wpdb; … Read more

Featured Image not showing in admin

Currently im making new theme and had the idea of adding featured image in the admin side of wordpress, unfortunately its not working this is what i have tried I have added this code in functions.php add_theme_support( ‘post-thumbnails’); i also tried to change it add_theme_support( ‘post-thumbnails’, array( ‘post’ ) ); // Add it for posts … Read more

Refactor create_function

I’m getting several create_function is depreciated errors from a plugin as the result of a recent WP upgrade to 5.2. The plugin is no longer supported which means I need to refactor the code myself. Would anyone be able to get me pointed in the right direction? function _options_page(){ if($this->args[‘page_type’] == ‘submenu’){ if(!isset($this->args[‘page_parent’]) || empty($this->args[‘page_parent’])){ … Read more

Any way to use a custom Parameter for youtube embed without using an iframe?

I do not want to display the titles of videos I embed on my wordpress site. The way I’ve been doing this is using the embed link, inserting the iframe in the wordpress post and adding the custom Parameter “showinfo=0” to the end of the url. This has worked well, until I decided to change … Read more

Recommend an open source, template driven website builder UI that produces a working WordPress site [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for … Read more