Browsing Tag

returns

wp get image editor returns wp error

I’m using aq_resize class to resize images and save them, but inside aq_resize.php there’s a wordpress function ($editor = wp_get_image_editor( $img_path )) always returning Error

Pagination on child category returns 404

Can anyone figure out why viewing pages in my child categories results in a 404, when the same $paged code works fine for my index

Displaying mysqli result returns bad char

I have a main page on which i want to display part of my blog (wordpress) articles. The mysqli query result is displaying some characters

Hide if get_the_category() returns no results

I’m listing related pages based on category. This is what I’m using to list all related categories. What I’m trying to do is hide the

wp_get_attachment_image_src returns image on main domain, false on subdomain

I’ve got a multisite install in development where both the subdomains and the main site use the exact same page templates for showing data. However,

Counting custom post type with wp_count_posts returns an empty object

For some reason the wp_counts_posts function returns an empty object if I use my custom post type’s name in the function’s parameter. The var_dump is:

SQL returns duplicate results

I’m writing an SQL query for WordPress that searches for events that are live between a users search. I’m hard-coding it at the moment to

mySQL query wroks from phpAdmin and returns rows but $wpdb->get_results dones return anything

I am trying execute a mySQL query from $wpdb->get_results but nothing returns while it works fine from phpAdmin and returns. $sql=" select SQL_CALC_FOUND_ROWS ref_id, case

MySQL query works from phpMyAdmin and returns rows, but $wpdb->get_results return nothing

I am trying execute a mySQL query from $wpdb->get_results, but nothing returns while it works fine from phpAdmin and returns. SQL code: $sql=" select SQL_CALC_FOUND_ROWS

Back to Top 134692 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising