• Resolved maidanet

    (@maidanet)


    I have created a custom post type and related taxonomy. When I go to the archive page of the post type, it lists all the posts, as it should.

    When I go to a category page, it still lists all of the posts, instead of only the ones in that category. Most of the issues I’ve seen related to this show a 404 page, but in my case, it just shows all.

    The taxonomy is registered to the post type. And I can see the numbers for each category when I go to the category page for that post type.

    The link generated is correct. It seems to not be filtering correctly. I tried resaving the taxonomy.

    The .htaccess file is standard.

    Any ideas on how to further troubleshoot?

    https://www.ads-software.com/plugins/custom-post-type-ui/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    How comfortable are you with touching PHP at all? Is this a live site or one that you’re working on that will be live eventually?

    Thread Starter maidanet

    (@maidanet)

    I am very comfortable with PHP.

    It is a live site. https://www.antique-row.com

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    What are the categories in question?

    if ( is_user_logged_in() && current_user_can( 'manage_options' ) ) {
    	global $wp_query;
    	print_r( $wp_query );
    }

    Here’s a quick snippet that should print out the contents of the $wp_query global object. With it being a live site, I wrapped it in this if statement that checks for a logged in admin. That way, even though it’s a live site, only should should end up breaking the archive temporarily.

    I’m curious what the the contents of that object is, and what it’s querying for. So if you could gist/pastebin it for me, we can get moving on this more.

    Thread Starter maidanet

    (@maidanet)

    WP_Query Object
    (
        [query_vars] => Array
            (
                [post_type] => business
                [error] =>
                [m] =>
                [p] => 0
                [post_parent] =>
                [subpost] =>
                [subpost_id] =>
                [attachment] =>
                [attachment_id] => 0
                [name] =>
                [static] =>
                [pagename] =>
                [page_id] => 0
                [second] =>
                [minute] =>
                [hour] =>
                [day] => 0
                [monthnum] => 0
                [year] => 0
                [w] => 0
                [category_name] =>
                [tag] =>
                [cat] =>
                [tag_id] =>
                [author] =>
                [author_name] =>
                [feed] =>
                [tb] =>
                [paged] => 0
                [comments_popup] =>
                [meta_key] =>
                [meta_value] =>
                [preview] =>
                [s] =>
                [sentence] =>
                [fields] =>
                [menu_order] =>
                [category__in] => Array
                    (
                    )
    
                [category__not_in] => Array
                    (
                    )
    
                [category__and] => Array
                    (
                    )
    
                [post__in] => Array
                    (
                    )
    
                [post__not_in] => Array
                    (
                    )
    
                [tag__in] => Array
                    (
                    )
    
                [tag__not_in] => Array
                    (
                    )
    
                [tag__and] => Array
                    (
                    )
    
                [tag_slug__in] => Array
                    (
                    )
    
                [tag_slug__and] => Array
                    (
                    )
    
                [post_parent__in] => Array
                    (
                    )
    
                [post_parent__not_in] => Array
                    (
                    )
    
                [author__in] => Array
                    (
                    )
    
                [author__not_in] => Array
                    (
                    )
    
                [ignore_sticky_posts] =>
                [suppress_filters] =>
                [cache_results] => 1
                [update_post_term_cache] => 1
                [update_post_meta_cache] => 1
                [posts_per_page] => 10
                [nopaging] =>
                [comments_per_page] => 50
                [no_found_rows] =>
                [order] => DESC
            )
    
        [tax_query] => WP_Tax_Query Object
            (
                [queries] => Array
                    (
                    )
    
                [relation] => AND
            )
    
        [meta_query] => WP_Meta_Query Object
            (
                [queries] => Array
                    (
                    )
    
                [relation] =>
            )
    
        [date_query] =>
        [post_count] => 10
        [current_post] => -1
        [in_the_loop] =>
        [comment_count] => 0
        [current_comment] => -1
        [found_posts] => 50
        [max_num_pages] => 5
        [max_num_comment_pages] => 0
        [is_single] =>
        [is_preview] =>
        [is_page] =>
        [is_archive] => 1
        [is_date] =>
        [is_year] =>
        [is_month] =>
        [is_day] =>
        [is_time] =>
        [is_author] =>
        [is_category] =>
        [is_tag] =>
        [is_tax] =>
        [is_search] =>
        [is_feed] =>
        [is_comment_feed] =>
        [is_trackback] =>
        [is_home] =>
        [is_404] =>
        [is_comments_popup] =>
        [is_paged] =>
        [is_admin] =>
        [is_attachment] =>
        [is_singular] =>
        [is_robots] =>
        [is_posts_page] =>
        [is_post_type_archive] => 1
        [query_vars_hash] => 7ca1da4fa2e45f51de3ef967c6a2b294
        [query_vars_changed] =>
        [thumbnails_cached] =>
        [stopwords:private] =>
        [query] => Array
            (
                [post_type] => business
            )
    
        [request] => SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  WHERE 1=1  AND wp_posts.post_type = 'business' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')  ORDER BY wp_posts.post_date DESC LIMIT 0, 10
        [posts] => Array
            (
                [0] => WP_Post Object
                    (
                        [ID] => 1637
                        [post_author] => 1
                        [post_date] => 2014-07-30 15:09:09
                        [post_date_gmt] => 2014-07-30 21:09:09
                        [post_content] => El Guapo is the little brother of <a href="https://www.antique-row.com/business/adelitas-mexican-restaurant/">Adelita</a>.  He provides more of a laid back bar atmosphere, He takes the day off on Monday’s, but he is back in action on Tuesdays serving his big sisters $1 tacos. He also  hosts poker two times on Wednesdays starting at 8pm, and Thursdays at 7pm.  He is a great place for private parties, and will soon have a large patio so you can enjoy his big sisters food under the sun or stars!
                        [post_title] => El Guapo
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => el-guapo
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-30 15:09:09
                        [post_modified_gmt] => 2014-07-30 21:09:09
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1637
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [1] => WP_Post Object
                    (
                        [ID] => 1632
                        [post_author] => 1
                        [post_date] => 2014-07-29 08:41:51
                        [post_date_gmt] => 2014-07-29 14:41:51
                        [post_content] => Fully coordinated medical care for low-income elderly over 55, needing some assistance – all under one roof. This
    includes coordinated healthcare, transportation, exercise, dental, meals, prescriptions and social and recreational
    activities.
    
    [gallery columns="1" size="large" link="file" ids="1633"]
                        [post_title] => InnovAge Greater Colorado PACE Denver
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => innovage-greater-colorado-pace-denver
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-29 08:41:51
                        [post_modified_gmt] => 2014-07-29 14:41:51
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1632
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [2] => WP_Post Object
                    (
                        [ID] => 1626
                        [post_author] => 1
                        [post_date] => 2014-07-29 08:32:49
                        [post_date_gmt] => 2014-07-29 14:32:49
                        [post_content] => A creative mix and match of antiques, shabby chic and mid-century furniture complemented by an interestingselection of accent pieces for the home. Eclectic pieces that work together to express your individuality.
    Reasonably priced style.
    
    [gallery link="file" size="medium" columns="2" ids="1627,1628,1629"]
                        [post_title] => Eclectic Works
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => eclectic-works
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-29 08:32:49
                        [post_modified_gmt] => 2014-07-29 14:32:49
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1626
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [3] => WP_Post Object
                    (
                        [ID] => 1620
                        [post_author] => 1
                        [post_date] => 2014-07-29 08:23:47
                        [post_date_gmt] => 2014-07-29 14:23:47
                        [post_content] => Repair, polish and plate brass, copper, and nickel. Architectural, home and automotive restorations.
    
    [gallery link="file" size="medium" columns="2" ids="1621,1622,1623,1624"]
                        [post_title] => Ajax Custom Plating Company
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => ajax-custom-plating-company
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-29 08:33:27
                        [post_modified_gmt] => 2014-07-29 14:33:27
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1620
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [4] => WP_Post Object
                    (
                        [ID] => 1602
                        [post_author] => 1
                        [post_date] => 2014-07-29 07:38:06
                        [post_date_gmt] => 2014-07-29 13:38:06
                        [post_content] => Adelitas Cocina y Cantina brings traditional Mexican fare, and tequila cocktails to your Platte Park neighborhood.  We are a dual family owned, and operated company.  
    
    [gallery link="file" size="medium" columns="2" ids="1604,1603,1605,1606"]
                        [post_title] => Adelita’s Mexican Restaurant
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => adelitas-mexican-restaurant
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-30 10:31:37
                        [post_modified_gmt] => 2014-07-30 16:31:37
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1602
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [5] => WP_Post Object
                    (
                        [ID] => 1597
                        [post_author] => 1
                        [post_date] => 2014-07-28 22:34:21
                        [post_date_gmt] => 2014-07-29 04:34:21
                        [post_content] => Denver's #1 Neighborhood Bar. Come and see for yourself. BYOD (Bring your own Dramamine for the boat)
    
    [gallery link="file" size="medium" columns="2" ids="1599,1598"]
                        [post_title] => Dive Inn
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => dive-inn
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 22:34:21
                        [post_modified_gmt] => 2014-07-29 04:34:21
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1597
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [6] => WP_Post Object
                    (
                        [ID] => 1591
                        [post_author] => 1
                        [post_date] => 2014-07-28 22:26:34
                        [post_date_gmt] => 2014-07-29 04:26:34
                        [post_content] => Dry Creek Gold Leaf provides only the best in framing services. With our handcrafting and finishing techniques, we can ensure that you receive a frame that protects, preserves and most importantly enhances your artwork. 
    
    [gallery columns="2" size="medium" link="file" ids="1592,1593,1594,1595"]
                        [post_title] => Dry Creek Gold Leaf, Inc.
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => dry-creek-gold-leaf-inc
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 22:26:34
                        [post_modified_gmt] => 2014-07-29 04:26:34
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=1591
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [7] => WP_Post Object
                    (
                        [ID] => 992
                        [post_author] => 1
                        [post_date] => 2014-05-05 01:39:44
                        [post_date_gmt] => 2014-05-05 07:39:44
                        [post_content] => Specializing in clocks, silver, watches, jewelry, fountain pens, toys, phonographs and music boxes. Dolls-Barbie. Buying gold---always buying. Top prices paid.
    
    [gallery link="file" size="medium" columns="2" ids="1335,1336,1338,1337"]
                        [post_title] => All Hours
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => closed
                        [post_password] =>
                        [post_name] => all-hours
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-27 21:00:08
                        [post_modified_gmt] => 2014-07-28 03:00:08
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=992
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [8] => WP_Post Object
                    (
                        [ID] => 990
                        [post_author] => 1
                        [post_date] => 2014-05-05 01:38:37
                        [post_date_gmt] => 2014-05-05 07:38:37
                        [post_content] => A Unique variety of fine furnishings and antiques. Specializing in silver, lamps, chandeliers, mahogany, walnut and cherry furniture, canes and art work. AN EXTRAORDINARY DENVER ANTIQUE SHOP PACKED FULL OF SURPRISES An Inviting Place is not just another Denver Antique Shop: it’s an enchanting getaway where the past is always present – where you will be delightfully surprised by the unique and fascinating antiques you can buy for your home or office:
    <ul>
    	<li>ANTIQUE SILVER</li>
    	<li>ANTIQUE LAMPS AND LIGHTING</li>
    	<li>RICH CHERRY, WALNUT AND MAHOGANY FURNITURE</li>
    	<li>ANTIQUE FOLK ART CANES</li>
    	<li>VINTAGE MEN’S HATS</li>
    </ul>
    Here you will find an ever-changing, diverse collection of treasures that will capture your imagination where you’re a decorator, designer, antique collector or a passerby looking for an interesting new adventure.
    
    [gallery columns="2" size="medium" link="file" ids="729,728"]
    
    Judy Delein created An Inviting Place in 1996 and is always shopping for those special vintage items that continue to surprise and delight so you will definitely want to visit often.
    
    [gallery columns="2" size="medium" link="file" ids="730,733,731,732"]
                        [post_title] => An Inviting Place
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => closed
                        [post_password] =>
                        [post_name] => an-inviting-place
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-27 21:11:04
                        [post_modified_gmt] => 2014-07-28 03:11:04
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=990
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [9] => WP_Post Object
                    (
                        [ID] => 988
                        [post_author] => 1
                        [post_date] => 2014-05-05 01:36:17
                        [post_date_gmt] => 2014-05-05 07:36:17
                        [post_content] => A collection of vendors dealing in vintage/antique furnishings and collectibles from funky to traditional, original 20th century paintings, architectural salvage items, garden as well as custom draperies and soft goods.
    
    [gallery columns="2" size="medium" link="file" ids="1346,1350,1352,1351,1344,1345,1349,1348"]
                        [post_title] => Annex Antiques and Interiors
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => closed
                        [post_password] =>
                        [post_name] => annex-antiques-and-interiors
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-27 21:35:21
                        [post_modified_gmt] => 2014-07-28 03:35:21
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=988
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
            )
    
        [post] => WP_Post Object
            (
                [ID] => 1637
                [post_author] => 1
                [post_date] => 2014-07-30 15:09:09
                [post_date_gmt] => 2014-07-30 21:09:09
                [post_content] => El Guapo is the little brother of <a href="https://www.antique-row.com/business/adelitas-mexican-restaurant/">Adelita</a>.  He provides more of a laid back bar atmosphere, He takes the day off on Monday’s, but he is back in action on Tuesdays serving his big sisters $1 tacos. He also  hosts poker two times on Wednesdays starting at 8pm, and Thursdays at 7pm.  He is a great place for private parties, and will soon have a large patio so you can enjoy his big sisters food under the sun or stars!
                [post_title] => El Guapo
                [post_excerpt] =>
                [post_status] => publish
                [comment_status] => closed
                [ping_status] => open
                [post_password] =>
                [post_name] => el-guapo
                [to_ping] =>
                [pinged] =>
                [post_modified] => 2014-07-30 15:09:09
                [post_modified_gmt] => 2014-07-30 21:09:09
                [post_content_filtered] =>
                [post_parent] => 0
                [guid] => https://www.antique-row.com/?post_type=business&p=1637
                [menu_order] => 0
                [post_type] => business
                [post_mime_type] =>
                [comment_count] => 0
                [filter] => raw
                [post_category] => 0
            )
    
        [queried_object] => stdClass Object
            (
                [labels] => stdClass Object
                    (
                        [name] => Businesses
                        [singular_name] => Business
                        [add_new] => Add Business
                        [add_new_item] => Add New Business
                        [edit_item] => Edit Business
                        [new_item] => New Business
                        [view_item] => View Business
                        [search_items] => Search Businesses
                        [not_found] => No Businesses Found
                        [not_found_in_trash] => No Businesses Found in Trash
                        [parent_item_colon] =>
                        [all_items] => Businesses
                        [menu_name] => Businesses
                        [edit] => Edit
                        [view] => View Business
                        [parent] => Parent Business
                        [name_admin_bar] => Business
                    )
    
                [description] =>
                [public] => 1
                [hierarchical] =>
                [exclude_from_search] =>
                [publicly_queryable] => 1
                [show_ui] => 1
                [show_in_menu] => 1
                [show_in_nav_menus] => 1
                [show_in_admin_bar] => 1
                [menu_position] =>
                [menu_icon] =>
                [capability_type] => post
                [map_meta_cap] => 1
                [register_meta_box_cb] =>
                [taxonomies] => Array
                    (
                        [0] => store_category
                    )
    
                [has_archive] => 1
                [rewrite] => Array
                    (
                        [slug] => business
                        [with_front] => 1
                        [pages] => 1
                        [feeds] => 1
                        [ep_mask] => 1
                    )
    
                [query_var] => business
                [can_export] => 1
                [delete_with_user] =>
                [_builtin] =>
                [_edit_link] => post.php?post=%d
                [label] => Businesses
                [singular_label] => Business
                [name] => business
                [cap] => stdClass Object
                    (
                        [edit_post] => edit_post
                        [read_post] => read_post
                        [delete_post] => delete_post
                        [edit_posts] => edit_posts
                        [edit_others_posts] => edit_others_posts
                        [publish_posts] => publish_posts
                        [read_private_posts] => read_private_posts
                        [read] => read
                        [delete_posts] => delete_posts
                        [delete_private_posts] => delete_private_posts
                        [delete_published_posts] => delete_published_posts
                        [delete_others_posts] => delete_others_posts
                        [edit_private_posts] => edit_private_posts
                        [edit_published_posts] => edit_published_posts
                        [create_posts] => edit_posts
                    )
    
            )
    
        [queried_object_id] => 0
    )
    Thread Starter maidanet

    (@maidanet)

    Disregard the last post, that was the archive for the custom post type.

    All of the categories for the custom post type are showing all of the businesses. But it looks like the query is returning the correct businesses. But it’s not displaying correctly.

    The query object:

    WP_Query Object
    (
        [query_vars] => Array
            (
                [store_category] => appraisals
                [error] =>
                [m] =>
                [p] => 0
                [post_parent] =>
                [subpost] =>
                [subpost_id] =>
                [attachment] =>
                [attachment_id] => 0
                [name] =>
                [static] =>
                [pagename] =>
                [page_id] => 0
                [second] =>
                [minute] =>
                [hour] =>
                [day] => 0
                [monthnum] => 0
                [year] => 0
                [w] => 0
                [category_name] =>
                [tag] =>
                [cat] =>
                [tag_id] =>
                [author] =>
                [author_name] =>
                [feed] =>
                [tb] =>
                [paged] => 0
                [comments_popup] =>
                [meta_key] =>
                [meta_value] =>
                [preview] =>
                [s] =>
                [sentence] =>
                [fields] =>
                [menu_order] =>
                [category__in] => Array
                    (
                    )
    
                [category__not_in] => Array
                    (
                    )
    
                [category__and] => Array
                    (
                    )
    
                [post__in] => Array
                    (
                    )
    
                [post__not_in] => Array
                    (
                    )
    
                [tag__in] => Array
                    (
                    )
    
                [tag__not_in] => Array
                    (
                    )
    
                [tag__and] => Array
                    (
                    )
    
                [tag_slug__in] => Array
                    (
                    )
    
                [tag_slug__and] => Array
                    (
                    )
    
                [post_parent__in] => Array
                    (
                    )
    
                [post_parent__not_in] => Array
                    (
                    )
    
                [author__in] => Array
                    (
                    )
    
                [author__not_in] => Array
                    (
                    )
    
                [ignore_sticky_posts] =>
                [suppress_filters] =>
                [cache_results] => 1
                [update_post_term_cache] => 1
                [update_post_meta_cache] => 1
                [post_type] =>
                [posts_per_page] => 10
                [nopaging] =>
                [comments_per_page] => 50
                [no_found_rows] =>
                [taxonomy] => store_category
                [term] => appraisals
                [order] => DESC
            )
    
        [tax_query] => WP_Tax_Query Object
            (
                [queries] => Array
                    (
                        [0] => Array
                            (
                                [taxonomy] => store_category
                                [terms] => Array
                                    (
                                        [0] => appraisals
                                    )
    
                                [include_children] => 1
                                [field] => slug
                                [operator] => IN
                            )
    
                    )
    
                [relation] => AND
            )
    
        [meta_query] => WP_Meta_Query Object
            (
                [queries] => Array
                    (
                    )
    
                [relation] =>
            )
    
        [date_query] =>
        [post_count] => 5
        [current_post] => -1
        [in_the_loop] =>
        [comment_count] => 0
        [current_comment] => -1
        [found_posts] => 5
        [max_num_pages] => 1
        [max_num_comment_pages] => 0
        [is_single] =>
        [is_preview] =>
        [is_page] =>
        [is_archive] => 1
        [is_date] =>
        [is_year] =>
        [is_month] =>
        [is_day] =>
        [is_time] =>
        [is_author] =>
        [is_category] =>
        [is_tag] =>
        [is_tax] => 1
        [is_search] =>
        [is_feed] =>
        [is_comment_feed] =>
        [is_trackback] =>
        [is_home] =>
        [is_404] =>
        [is_comments_popup] =>
        [is_paged] =>
        [is_admin] =>
        [is_attachment] =>
        [is_singular] =>
        [is_robots] =>
        [is_posts_page] =>
        [is_post_type_archive] =>
        [query_vars_hash] => 757b0560a48bef1354d5fd105da01e31
        [query_vars_changed] =>
        [thumbnails_cached] =>
        [stopwords:private] =>
        [query] => Array
            (
                [store_category] => appraisals
            )
    
        [request] => SELECT SQL_CALC_FOUND_ROWS  wp_posts.ID FROM wp_posts  INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1  AND ( wp_term_relationships.term_taxonomy_id IN (3) ) AND wp_posts.post_type = 'business' AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10
        [posts] => Array
            (
                [0] => WP_Post Object
                    (
                        [ID] => 984
                        [post_author] => 1
                        [post_date] => 2014-05-05 01:33:05
                        [post_date_gmt] => 2014-05-05 07:33:05
                        [post_content] => Oak Furniture, Mahogany and Walnut. Collectibles and Pottery. We buy Sell and Trade. Volume Discounts and Dealer Pricing
    
    &nbsp;
    
    [gallery columns="2" size="medium" link="file" ids="1362,1364,1365,1363"]
    
                        [post_title] => Antique Brokers
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => closed
                        [post_password] =>
                        [post_name] => antique-brokers
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-27 21:59:17
                        [post_modified_gmt] => 2014-07-28 03:59:17
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=984
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [1] => WP_Post Object
                    (
                        [ID] => 937
                        [post_author] => 1
                        [post_date] => 2014-05-05 00:25:56
                        [post_date_gmt] => 2014-05-05 06:25:56
                        [post_content] => Books in many areas: art, Western Americana, children’s & illustrated, railroad, leather, decorative bindings, military, history, modern firsts, photography. Also original World War I & II posters and library related items.
    
    [gallery link="file" size="large" columns="1" ids="1486"]
    
    <p class="content">You can search our online inventory at:
    <a href="https://www.gcbooks.com" target="_blank">www.gcbooks.com</a></p>
    
    <p>Gallagher Books has been on Denver's Famous Antique Row since 1994 selling rare, out of print, unusual books as well as original WW I and WW II psters, and library related antiques.</p>
    
    <p>The shop offers a comfortable setting to browse an interesting general stock displayed on antique fixtures including 100 year old cast iron book shelves from Denver's original Carnegie Library. The stock includes choice items in Western History, Americana, Art, Architecture, Photography, Military History and Civil War, Railroad, Children and Illustrated, Decorative Arts, Cooking; and, complementing other stores in the neighborhood, Antiques and Collectibles.</p>
    
    [gallery link="file" size="medium" columns="2" ids="1487,1488"]
    
    <p>We hope you'll visit us when you are in the area. Come in and have a cup of coffee or refreshment while you look at books and relax in a comfortable chair.</p>
    
    <p>Check our online inventory by category at: <strong><a href="https://www.gcbooks.com" target="_blank">www.gcbooks.com</a></strong>. Not all of our books are online, so if you don't see what you are looking for, call us Toll Free <strong>1-866-425-5225</strong> to see if we have it. If we don't, we will do a search for you.</p>
    
    <p>We also offer significant selections of leather bound and decorative bindings, as well as dozens of bookends.</p>
    
    [gallery link="file" size="medium" columns="2" ids="1489,1491"]
    
    <p>As a member of the Antiquarian Booksellers' Association of America (<a href="https://www.abaa.org" target="_blank"><strong>ABAA</strong></a>), the International League of Antiquarian Booksellers (<a href="https://www.ilab-lila.com" target="_blank"><strong>ILAB</strong></a>), and the Rocky Mountain Antiquarian Booksellers Association (<a href="https://www.rmaba.org" target="_blank"><strong>RMABA</strong></a>), we adhere to the highest standards of the book trade. We want you to be completely satisfied with anything that you buy from us. All purchases are returnable within a reasonable period of time for a complete refund, no questions asked.</p>
    
    <p>We are also a Charter Member of <a href="https://tomfolio.com/shop/GallagherCollection/" target="_blank">Tom Folio.com</a>, an "International Co-Op of Independent Dealers" offering Used and Rare Books, Periodicals, and Paper Ephemera online.</p>
    
    [gallery link="file" size="medium" columns="2" ids="1493,1494"]
    
    <p>The posters are all original lithographs dating from before World War I through World War II.</p>
    
    <p>Thanks for looking at our page. We hope to see you in the near future. Don and Sue Gallagher</p>
    
                        [post_title] => Gallagher Books
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => gallagher-books
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 00:09:29
                        [post_modified_gmt] => 2014-07-28 06:09:29
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=937
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [2] => WP_Post Object
                    (
                        [ID] => 928
                        [post_author] => 1
                        [post_date] => 2014-05-05 00:14:34
                        [post_date_gmt] => 2014-05-05 06:14:34
                        [post_content] => Specializing in Americana, period furniture, folk art and fine Swiss watches.
    
    [gallery link="file" size="medium" columns="2" ids="1512,1506,1507,1509,1511,1514"]
                        [post_title] => John Boulware Antiques
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => john-boulware-antiques
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 00:14:44
                        [post_modified_gmt] => 2014-07-28 06:14:44
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=928
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [3] => WP_Post Object
                    (
                        [ID] => 904
                        [post_author] => 1
                        [post_date] => 2014-05-04 23:12:36
                        [post_date_gmt] => 2014-05-05 05:12:36
                        [post_content] => A nice selection of high quality Antique Dolls, toys, teddy bears, jewelry, gold & silver, furniture pottery and collectibles. Stop in to see us.
    
    [gallery link="file" size="medium" columns="2" ids="1568,1565,1566,1567,1564,1569,1572,1573,1575,1576,1577"]
                        [post_title] => Turn of the Century Antiques
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => turn-of-the-century-antiques
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 00:44:57
                        [post_modified_gmt] => 2014-07-28 06:44:57
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=904
                        [menu_order] => -10
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
                [4] => WP_Post Object
                    (
                        [ID] => 901
                        [post_author] => 1
                        [post_date] => 2014-05-04 23:09:13
                        [post_date_gmt] => 2014-05-05 05:09:13
                        [post_content] => Interesting collection of antiques. Specializing in Asian, American and European accessories for any decor. Silver, fine linens. Jewelry. Estate sales. Appraisals.
    
    [gallery link="file" size="medium" columns="2" ids="1579,1580"]
                        [post_title] => Warner’s Antiques
                        [post_excerpt] =>
                        [post_status] => publish
                        [comment_status] => closed
                        [ping_status] => open
                        [post_password] =>
                        [post_name] => warners-antiques
                        [to_ping] =>
                        [pinged] =>
                        [post_modified] => 2014-07-28 00:45:00
                        [post_modified_gmt] => 2014-07-28 06:45:00
                        [post_content_filtered] =>
                        [post_parent] => 0
                        [guid] => https://www.antique-row.com/?post_type=business&p=901
                        [menu_order] => 0
                        [post_type] => business
                        [post_mime_type] =>
                        [comment_count] => 0
                        [filter] => raw
                        [post_category] => 0
                    )
    
            )
    
        [post] => WP_Post Object
            (
                [ID] => 984
                [post_author] => 1
                [post_date] => 2014-05-05 01:33:05
                [post_date_gmt] => 2014-05-05 07:33:05
                [post_content] => Oak Furniture, Mahogany and Walnut. Collectibles and Pottery. We buy Sell and Trade. Volume Discounts and Dealer Pricing
    
    &nbsp;
    
    [gallery columns="2" size="medium" link="file" ids="1362,1364,1365,1363"]
    
                [post_title] => Antique Brokers
                [post_excerpt] =>
                [post_status] => publish
                [comment_status] => closed
                [ping_status] => closed
                [post_password] =>
                [post_name] => antique-brokers
                [to_ping] =>
                [pinged] =>
                [post_modified] => 2014-07-27 21:59:17
                [post_modified_gmt] => 2014-07-28 03:59:17
                [post_content_filtered] =>
                [post_parent] => 0
                [guid] => https://www.antique-row.com/?post_type=business&p=984
                [menu_order] => 0
                [post_type] => business
                [post_mime_type] =>
                [comment_count] => 0
                [filter] => raw
                [post_category] => 0
            )
    
        [queried_object] => stdClass Object
            (
                [term_id] => 3
                [name] => Appraisals
                [slug] => appraisals
                [term_group] => 0
                [term_taxonomy_id] => 3
                [taxonomy] => store_category
                [description] =>
                [parent] => 0
                [count] => 5
                [filter] => raw
            )
    
        [queried_object_id] => 3
    )
    Thread Starter maidanet

    (@maidanet)

    OK! I’ve fixed it!

    I was using [is_category] instead of [is_archive], which called the wrong template.

    Thank you, thank you, thank you for pointing me in the right direction with the query object. This was driving me crazy!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad you were able to work it out, and glad I was able to revoke this issue’s license to drive ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom post type taxonomy archive shows all posts of that type’ is closed to new replies.