cms icon indicating copy to clipboard operation
cms copied to clipboard

Draft entries are outputted/showing frontend when using entries tag with taxonomy tag and on taxonomy show page.

Open philipboomy opened this issue 3 years ago • 2 comments

Bug Description

When using the {{ entries }} tag on a taxonomy page as well as inside the {{ taxonomy }} tag it is outputting entries that are in draft. - Related to #2721

How to Reproduce

Output entries in a taxonomy tag using the entries tag

Extra Detail

https://share.getcloudapp.com/BluKzvYJ https://share.getcloudapp.com/2Nuqp8Ew https://share.getcloudapp.com/mXurGW1v

With the "published" condition it is working https://share.getcloudapp.com/rRujzDk8

Environment

Statamic 3.1.27 Pro Laravel 8.49.1 PHP 7.4.19 No addons installed

Install method (choose one):

  • Starter kit

philipboomy avatar Jul 05 '21 10:07 philipboomy

I can confirm I'm in a taxonomy route and getting this bug.

Version: Statamic 3.1.35

PS: Im going to use the following as a work around for now:

file: resources/views/tags/show.antlers.html

{{ entries paginate="5" status:is="published" }}
            {{ results }}
              {{ partial:components/card
                  :title="title"
                  :url="url"
                }}
            {{ /results }}
          {{ /entries }}

austriker27 avatar Sep 14 '21 17:09 austriker27

Also confirmed.

robdekort avatar Nov 11 '21 12:11 robdekort

Fixed in 4.x.

jackmcdade avatar Aug 01 '23 16:08 jackmcdade