Viewing 4 replies - 1 through 4 (of 4 total)
  • $tags = wp_get_post_tags($post->ID);

    afaik, $post is not really clearly defined at that point before the loop in an archive.php template – what post should it refer to anyway?

    From Specific tag/category

    what tags are you trying to get at that point? or what category?

    to check what the result of that ‘wp_get_post_tags()’ is, try to add

    print_r($tags);

    after that line.

    Thread Starter bmoredrew

    (@bmoredrew)

    It prints this on the 3rd page:

    Array ( [0] => stdClass Object ( [term_id] => 8 [name] => featured [slug] => featured-blog [term_group] => 0 [term_taxonomy_id] => 8 [taxonomy] => post_tag [description] => [parent] => 0 [count] => 3 ) )

    all other pages it should be on just show “array()”

    so its showing featured-blog (slug) / featured ?

    which is fine with me. Its just not showing on the first page for some reason. possibly because its a category ? but then why would it not show on the 2nd page (permalink changes to /page/ in it) but the 3rd only?

    read my first reply – $post is not defined where you use it, just random.

    clearly describe exactly with your own words, where you intend to get the ‘Specific tag/category’ from.

    there is no way to make any useful suggestion without knowing this.

    Thread Starter bmoredrew

    (@bmoredrew)

    $tag_ids = array(8);

    I added the featured-blog id to the tag array.

    I know just enough to be dangerous.. so I’m not really sure what you’re asking.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured Posts Grid From Specific tag/category ?’ is closed to new replies.