accessing tag pages from outside wp blog (2 posts)

  1. bplady
    Posted 6 years ago #

    Can anyone tell me how to access my 'www.mydomain/blog/tag/whatever' pages from 'www.mydomain'? I can do this for my categories and I can access the tag cloud associated with a particular category, but I can't seem to figure out how to make the translation to doing same for accessing tags. FYI, I'm using the following code for doing this for categories (I found it somewhere on the web and it works great)- I'd have thought an iteration would work for tags, but I'm not getting there:
    function parseObjectToArray($object)
    $array = array();
    if (is_object($object))
    $array = get_object_vars($object);
    return $array;
    $posts = get_posts($cAt);
    foreach ($posts as $post) : start_wp();
    $num = count($posts);
    while ($i<$num)
    $a = parseObjectToArray($posts[$i]);

  2. esmi
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic