Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • wpadmirer

    (@wpadmirer)

    I’m also unable to backup to Dropbox, and I’ve tried on a number of different servers:

    [ERROR] DropBox API: (100) Invalid response.

    Thread Starter wpadmirer

    (@wpadmirer)

    I got this working with a little outside help, so for an future bloggers who want to display tags in a jump menu rather than the default tag cloud, here is the code:

    echo "<select name='tag-dropdown' onChange='document.location.href=this.options[this.selectedIndex].value;'>
    
    <option value=''>";
    
    echo attribute_escape(__('Select a Tag'));
    
    echo "</option>";
    
    $posttags = get_terms('post_tag');
    
    if ($posttags) {
    
     foreach($posttags as $tag) {
    
      echo "<option value='";
    
      echo get_tag_link($tag);
    
      echo "'>";
    
      echo $tag->name;
    
      echo "</option>";
    
     }
     echo "</select>
    Thread Starter wpadmirer

    (@wpadmirer)

    That’s AWESOME, Pinoy.ca, thanks a lot. Now I see what you were getting at.

    The really interesting thing is that it generates a jump menu that’s completely blank on the inside–it opens up to about the length that it should be given the number of tags that I have, but there’s no text inside, and any time you select one of the blank spaces in the jump menu you get a 404 error because it’s calling up the following url: “(mysiteaddress)/tags/” but no actual tag name.

    Any idea why?

    If I understand your code, you’re creating an array and calling it $posttags, and calling each individual value in the array $tag, and then trying to get the $tag URL and name… that’s the part that doesn’t seem to be working.

    Thread Starter wpadmirer

    (@wpadmirer)

    Sorry, Pinoy.ca–I really appreciate your help, but I’m way too dense to understand these nuggets you’re giving me. I’ve been researching arrays trying to figure out how I can use it once I have it (from telling wp_tag_cloud to generate one).

    I’m a total n00b. 🙂

    Thread Starter wpadmirer

    (@wpadmirer)

    Thank you, Pinoy.ca. I’m a bit confused–according to your link, “get_the_tags” can only be used within the loop, and I’m trying to apply this to my sidebar.

    I should mention, I’m pretty new to PHP, but I’ve been able to fake my way through WordPress templates.

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