• Resolved elukavsky

    (@elukavsky)


    I can’t seem to figure out how to pull a list of attachments using a custom taxonomy I created into a twig template. I have three videos tagged to use in a custom slideshow I am making. The custom taxonomies are working everywhere else except for when I try to display them in my twig template.

    I’ve tried:
    1. Timber::get_terms(‘custom_taxonomy’,array(‘include’=>tag_ID));
    -Returns empty array
    2. Timber::get_posts(‘post_type=attachment’);
    -Returns empty array
    3. The pre_get_posts solution from https://wordpress.org/support/topic/custom-type-posts-are-missing
    -Returns posts and pages only

    Thanks!

    https://wordpress.org/plugins/timber-library/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Taxonomy on Attachment Post Type’ is closed to new replies.