Skip to content

Sorting not working on single tem page #207

@Malin88

Description

@Malin88

Hi,
I have CPT called team with taxonomy profession. Then, I added an ACF field sorting_name that I wanted to sort by, and the last step I added:

'site_sortables' => ['sorting_name' => array(
                'meta_key' => 'sorting_name',
                'default' => 'ASC',
            )],

On main archive page /team new sorting works fine, but when I go to any category of 'profession' eg. /profession/office the list of posts is sorting by title as it was before.

any suggestions how to fix this ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions