Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress table of events

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28779
    mshort
    Member

    Hi Everyone,

    I have been working on a website for a client who are a dance group, and they wanted a page with a list of their shows that give the name of the show, the date, the venue, and a link to the company who is selling their tickets.

    I messed around with various Ideas including the one which Chris mentioned in his latest Screen cast where he was going to have an "editthis.php" page.

    In the end I came up with the following solution using custom fields and the wordpress loop to spit out the content.

    most of the ideas came from watching various screencasts of Chris’ mainly the ‘advanced uses for custom fields’.

    Heres the loop:

    Code:
    100, ‘post_parent’ => 6, ‘post_type’ => ‘page’)); ?>

    ‘;
    echo ‘

    ‘;
    echo ‘

    ‘;
    echo ‘

    ‘;
    echo ‘

    ‘;
    echo ‘

    ‘;
    }
    }
    ?>

    ‘;
    echo get_post_meta($post->ID, ‘show-Title’, true);
    echo ‘
    ‘;
    echo get_post_meta($post->ID, ‘Show-Venue’, true);
    echo ‘
    ‘;
    echo get_post_meta($post->ID, ‘Show-Date’, true);
    echo ‘
    ‘;
    echo ‘ID, ‘show-url’, true) , ‘”>Buy Tickets‘;
    echo ‘

    I know this probably isn’t the best solution, but its what I came up with :) if anyone has a better way of doing it feel free to let me know. I hope this is helpful to anyone who is wanting to do a similar thing.

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.