I run an events company whose website uses a custom post type system for posts (blog), events and tickets all stored as CPT’s in the DB. On the guestlist...
I have a wordpress table like so (phpmyadmin and MySQL) | id | meta_key | meta_value | +----+-----------+------------+ | 1 | import_id | abc | | 2 | import_id...
I started building a plugin in which I need to build some custom queries with wpdb object. It’s the first time I use it. So I checked out how...
I’m working at a WordPress theme. Since I need to display featured posts, related posts, some widgets with recent posts and so on, I need to use multiple custom...
$args = array( 'numberposts' => '10', 'post_type' => 'newposttype'); $recent_posts = wp_get_recent_posts( $args ); I know it’s not a simple thing to ask but how could I set the...
Good day, Perhaps you are willing to help out a php-beginner. I’m trying to add a post or page tag to the list of classes appearing in the body...
I am attempting to orderby the author_name when you click on the Author arrow on a list of tickets. When you click the arrow, the names are ordering by...
I’ve created a personal plugin and now I’m worried about this vulnerability: https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html This is how I use add_query_arg(). Is this fine or should I protect it in some...
I am looking to create a custom ‘directory’ page which will link to several thousands of posts. Because of the large number I am trying to limit the number...
I have this query so far : $user_args = array( 'role' => 'frontend_vendor', 'orderby' => 'display_name', 'order' => 'ASC', 'number' => $no, 'offset' => $offset ); $user_query = new...