• Mazzo77

    (@mazzo77)


    hi

    I need to make an elseif for the tags and custom taxonmies

    <?php $this_category = get_category($cat); 
      if($this_category->category_parent == 0) { include (TEMPLATEPATH . '/cat-featured.php'); } ?>

    and don’t include anything in the elseif of “tags” and “custom taxonomies”
    just continue the loop

    i need the elseif for tags and taxonomies , before “have posts”

    check this : https://i.imgur.com/jJZJcSK.png

    thanks in advance ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi!

    Can you elaborate a little more on what you mean?

    Unfortunately, an image doesn’t really help with explaining what you are trying to accomplish or what the issue you are encountering.

    Thread Starter Mazzo77

    (@mazzo77)

    hi

    thanks a lot for your try to help

    this code is in my “archive.php” file of my theme

    and i add this code, to show a custom featured box in categories

    but when i write this code, my categories are working fine

    but the tags and custom taxonomies not loading ,

    because i need to include elseif for “tags” and “custom taxonomies” in this code

    but again i don’t want to show this featured box in tags nor pages, i need it to work only in cats

    hope that, i clarify what i want

    and here’s my archive.php file

    https://pastebin.com/raw/2GZwQR3L

    • This reply was modified 8 years ago by Mazzo77.
    Thread Starter Mazzo77

    (@mazzo77)

    any help mr.@jcastaneda

    • This reply was modified 8 years ago by Mazzo77.
    • This reply was modified 8 years ago by Mazzo77.
    Thread Starter Mazzo77

    (@mazzo77)

    any help guys ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘elseif with tags ?’ is closed to new replies.