Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Pelliot

    (@pelliot)

    Nevermind, avoided the issue entirely.

    Thread Starter Pelliot

    (@pelliot)

    I’m going to go ahead and mark this one resolved.

    Thread Starter Pelliot

    (@pelliot)

    Success! Thanks, sidebar was the way to go! Pretty happy with the finished product:

    http://postimg.org/image/atrrwzk9r/

    Thanks again for the help!

    FYI, if others ever come across this page, here are the external resources I used:

    Plugin:

    http://wordpress.org/plugins/php-code-widget/

    Codex:

    http://codex.wordpress.org/Function_Reference/get_the_term_list

    And to get the sidebar to display certain taxonomies w/o links, I used this code:

    <?php $terms_as_text = get_the_term_list( $post->ID,'TAXONOMY-NAME', ' ', ', ');
    if (!empty($terms_as_text)) echo '<p>', strip_tags($terms_as_text) ,'</p>'; ?>

    Thanks again for the helping hand, I’ve been trying to figure this out for so long.

    -Patrick

    Thread Starter Pelliot

    (@pelliot)

    Awesome! Thanks so much for all your help and support.

    I’ve made some progress using this code in single-games.php:

    <?php echo get_the_term_list( $post->ID, 'developer', '<p>Developer(s): ', ', ', '</p>' );
    echo get_the_term_list( $post->ID, 'platforms', '<p>Platform(s): ', ', ', '</p>' );
    echo get_the_term_list( $post->ID, 'view', '<p>View: ', ', ', '</p>' );
    echo get_the_term_list( $post->ID, 'style', '<p>Style: ', ', ', '</p>' );  the_content( __( '<p class="serif">Read the rest of this page &rarr;</p>', 'cc' ) ); ?>

    This gets the taxonomy information to display at the top of the page, below the game title. However, I’m still trying to figure out how to get it to sit to the right, so the content of the game page doesn’t get pushed down below it.

    Here’s a screenshot of how the game page currently looks: http://postimg.org/image/5efewo54d/

    If anyone knows how to go about shifting it over to sit on the right side of the page, (or even better, the sidebar) I’d be endlessly grateful.

    Thanks!

    Thread Starter Pelliot

    (@pelliot)

    Thanks, but I couldn’t quite get that code working. However, I did add this code to the single-games.php and it seems to have done the trick, though (the first step, at least):

    <?php echo get_the_term_list( $post->ID, 'developer', '<p>Developer(s): ', ', ', '</p>' ); ?>
    <?php echo get_the_term_list( $post->ID, 'platforms', '<p>Platform(s): ', ', ', '</p>' ); ?>

    This shoots back this formatting:

    Developer(s): Square
    Publisher(s): Nintendo

    Now I just need to figure out how to get it to sit at the top right of the page!

    Also, it’d be nice if I could get some of the taxonomies not be hyperlinked to an archive page, as I’m not going to need an archive for things like release dates.

    Thread Starter Pelliot

    (@pelliot)

    Hmmm….tried adding it to functions.php and there was an error. After restoring, I then tried to add it to the “single-games.php” file, and it too had n error.

    I was editing single-games.php beforehand, when I got it to display the taxonomy name and value separately, so perhaps that is where this code should eventually end up after, maybe some tweaking?

    Again, thanks for any and all help.

    -Patrick

    Thread Starter Pelliot

    (@pelliot)

    Hi, thank you for your response!

    So to be clear, I have a Custom post-type called “Games.” Games have their own taxonomies such as “platform” “release date,” “developer” and “publisher,” ect.

    I’d like each game’s page to display the values of these, so it looks something like this:

    Developer: Square
    Publisher: Nintendo
    Platform: SNES
    Release Date: 1991

    Ideally, I’d like these displayed on the right side of the page. I’d love to be able to display this information in a box (a la Wikipedia-style) off to the right of the page, but even just listing it like above (aligned right) would be swell, too.

    Thanks for listening!

    I have a somewhat similar issue with the three featured post images beneath the slider.

    These default to the most three recent posts, but I would like these to link to static pages instead. Is there a way to do this? is there some code I need to edit?

    Thanks!

    Great, thanks so much Joy. It is working perfectly. I appreciate all of your help!

    Hi Joy, everyone,

    I am trying to do something similar with this plugin. I have a Custom Post Type with its own Taxonomies. I want to list a table of a specific Taxonomy from that Custom Post Type on a Page.

    Would I need to use more code than code Joy has described?

    Thanks!

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