• I’m currently creating a site for my student radio station and I need to find a way to add a day & time as meta to each programme category so that it’ll be possible to:

    1) Order categories by the day & time.
    2) Display the day & time by recalling the meta.
    3) Use a function to recognise which programme is currently on air and display all the data attached to it.

    An example of my current category loop is such (using category description as a way to add an image):

    <?php
    $args=array(
      'orderby' => 'name',
      'order' => 'ASC'
      );
    $categories=get_categories('child_of=4');
      foreach($categories as $category) {
        echo '
          <div class="showboxtitle" style="background:url('. $category->description . ') no-repeat;">
          <a href="' . get_category_link( $category->term_id ) . '" class="nct" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a>
          </div>';
    } ?>

    I’ve checked out the category meta plugin and tried to use the get_terms_meta, but I can’t seem to get even basic text meta to work, let alone specific timecode meta.

    Any help or pointers would be fantastic!

    Cheers in advance,

    Will

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Give category a timecode meta’ is closed to new replies.