issues accessing GetPostQuery on hosting environment
-
Hi.
I’m new to WordPress development and am wondering if you’ve seen this before. I’ve installed your plugin and everything works great. I’ve even written some hooks on my pages to query custom posts and leverage GetPostQuery. This all works great on my local environment, but when attempting to move my code over to a hosting envioronment (multiple sites enabled), my code errors out when attempting to instantiate GetPostsQuery class. The plugin installed fine and I’ve created custom content. This is the only issue I’m seeing.
Here is the code block where I’m seeing the error
$Q = new GetPostsQuery(); $args = array(); $args['post_type'] = 'brands'; $args['productline'] = $products; $results = $Q->get_posts($args); $count = sizeof($results);Any help would be great!
The topic ‘issues accessing GetPostQuery on hosting environment’ is closed to new replies.