[wp-trac] [WordPress Trac] #43002: Can't order tag cloud by tag_cloud_sort filter
WordPress Trac
noreply at wordpress.org
Tue Jan 2 06:53:47 UTC 2018
#43002: Can't order tag cloud by tag_cloud_sort filter
-------------------------------+------------------------------
Reporter: yuetyeelo2855 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by yuetyeelo2855):
Replying to [comment:1 birgire]:
> @yuetyeelo2855 Welcome to WordPress trac.
>
> Can you please extend the bug report,
>
> e.g. with an example so it can easily be reproduced and verified.
>
> Thanks.
It is no common case, If the user create tag like
tag1[id=1], tag2[id=2], tag3[id=3]
want the tage order like
tag1[id=1, post_count=5], tag2[id=2, post_count=20], tag3[id=3,
post_count=10]
so using WordPress filter tag_cloud_sort to order by extra column
tag_order
tag1[id=1, tag_order=1], tag2[id=2, tag_order=2], tag3[id=3, tag_order=3]
but the order will not work. it will follow the post count.
ASC:
tag1[id=1, post_count=5], tag3[id=3, post_count=10], tag2[id=2,
post_count=20]
DESC:
tag2[id=2, post_count=20], tag1[id=1, post_count=5], tag3[id=3,
post_count=10]
Can we re-order the order of logic, make the default order go first, than
exec the filter tag_cloud_sort.
the position [/wp-includes/category-template.php] line no. 821-844
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43002#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list