Author:
June 23, 2023
/ WordPress
‘Trying to get property of non-object’ when using WP_Query with ‘fields’ => ‘ids’
In an attempt to speed up my query, I’m using the following arguments: $args = array( ‘post_type’ => ‘product’, ‘fields’…
June 23, 2023
/ WordPress
Select posts with any post_type from database?
I’m trying to select all rows from the database regardless of post type, however when suppressing post_type WP_Query only gets…
June 23, 2023
/ WordPress
Show hierarchical relationship between to custom post types on admin list
I have two custom post types: “request” and “quote”. Both have the “hierarchical” flag set to true. A ‘request’ cpt…
June 23, 2023
/ WordPress
Get published posts and pages?
I’m working on a plugin to use gettext in posts and pages content. I’m trying to get all published posts…
June 23, 2023
/ WordPress
WordPress and a secondary database?
I have to achieve something on which I don’t know how to approach it. Base of the issue: There’s a…
June 23, 2023
/ WordPress
Theme’s text domain & language.PO file not working
I can’t get my translations to work in my theme. Here is what I have In functions.php, I have: load_theme_textdomain(…