Support » Themes and Templates » Grid of Posts

Viewing 15 replies - 31 through 45 (of 69 total)
  • Thread Starter ernestg

    (@ernestg)

    That sounds perfect. I’ll play around with it a bit and I’ll edit it so you can take a look. Thanks so much. Once I get my first check from ad sense a beer or four will be on it’s way. Thanks so much. Thank you for your patience and I will definitely keep in contact.

    EDIT: Actually, how would I go about hiding the title on hover? That way I’ll be able to just have the game icon totally showing with nothing in the way.

    how would I go about hiding the title on hover?

    remove this total section from the last line that you edited:

    title="<?php printf( esc_attr__( 'Play %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>"

    btw: nice transformation of your site – i am glad i could help (in the true sense of my site title – lol)

    Thread Starter ernestg

    (@ernestg)

    I removed it, but wouldn’t I have to code something in the css that I want to hide title on .post:hover or something?

    i maybe was thinking of the wrong title – do you want the post title text and black background to dissappear on hover?

    super cool idea πŸ˜‰

    try to add this to the styles:

    .col .post:hover h2 a span { display: none; }

    and remove this odd line:
    .col .post:hover { h2.entry-title-display:false; }
    (is no quite right, anyway)

    Thread Starter ernestg

    (@ernestg)

    Ahaha. Looks just as I envisioned it. Now, to add more games! And how to figure out how to add page numbers…

    You have any recommendations on this? I tried a plugin once before, all I remember was that it was like a 5 star plugin, but it didn’t work.

    i have used wp-pagenavi in the past – http://wordpress.org/extend/plugins/wp-pagenavi/

    you might need to add this to style.css:
    #nav-below { clear:both;}
    to keep the bottom ‘next/prev posts’ clean, when you have only a few games on the second page.

    Thread Starter ernestg

    (@ernestg)

    Hmm… I added the plugin, and I added the css, but nothing… ugh. I don’t get why I can never get the page navigation to work.

    have you added the plugin code to the loop-grid.php template, as described in the plugin description?

    like:

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
            <div id="nav-above" class="navigation">
    
    <?php if( function_exists('wp_pagenavi') ) :
    wp_pagenavi();
    else : ?>
    
                    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
                    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    
    <?php endif; ?>
    
            </div><!-- #nav-above -->
    <?php endif; ?>

    analogue for the posts nav at the bottom.

    if you are stuck, please paste the code of loop-grid.php into a http://pastebin.com/ and post the link to it here.

    Thread Starter ernestg

    (@ernestg)

    In the description (http://wordpress.org/extend/plugins/wp-pagenavi/)
    It doesn’t say anything about entering any code.

    Am I using the same plug-in you are talking about… and if so… where exactly do I put the code?

    My loop-grid.php

    Thanks

    there is some instructions under the ‘installation’ tab in the plugin page.

    after line 15 of the current pastebin:

    <div id="nav-above" class="navigation">

    add:

    <?php if( function_exists('wp_pagenavi') ) :
    wp_pagenavi();
    else : ?>

    then before line 18:
    </div><!-- #nav-above -->
    add:
    <?php endif; ?>

    then scroll down; find:

    <div id="nav-below" class="navigation">
                                    <?php if(function_exists('page_navi')) { page_navi(); } else { ?>
                                            <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
                                            <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">β†’</span>', 'twentyten' ) ); ?></div>
                                            <?php } ?>
                                    </div><!-- #nav-below -->

    there is already some code for a different paging function;
    change this to:

    <div id="nav-below" class="navigation">
                                    <?php if(function_exists('wp_pagenavi')) :
     wp_pagenavi();
    else : ?>
                                            <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
                                            <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">β†’</span>', 'twentyten' ) ); ?></div>
                                            <?php endif; ?>
                                    </div><!-- #nav-below -->

    good luck πŸ˜‰

    Thread Starter ernestg

    (@ernestg)

    Also, as you can now see on the page. I stickies 5 categories, and I want users to be able to click on the catergory/permalink and get to the catergory. SO basically, when post something, can I give its permalink to a different subdirectory?

    Like, “Racing” takes you to milkshakestudybreak.com/games/racing but I want to set it to milkshakestudybreak.com/games/category/racing

    EDIT: And Yes! Page navi worked. Just gotta style it in my spare time,

    And like I said, if I could make an icon to point to a catergory, that would make sorting a whole lot easier.

    there is a plugin ‘page-links-to’ http://wordpress.org/extend/plugins/page-links-to/ which can turn page links into links to any address – according to the description, this seems to work for posts as well.

    ps:
    a little tweak for the styles:

    #nav-below { clear:both; z-index:100; padding: 0  0 10px 0; }
    #nav-above { padding: 10px  0 5px 0; }

    there seem to be some (possibly invisible) characters at the start of the stylesheet – which might interfere with the first style in the sheet – set the cursor on the # of the first line and press the backspace/delete button; maybe that will get rid of them.

    Thread Starter ernestg

    (@ernestg)

    So, I just have to style some things… and make the categories appear in a grid format and add tons of games… and I’m done. It does everything I wanted it to. Exactly what I wanted. Thanks again. Like I said before I’ll keep in touch, you were a big part of this.

    Thread Starter ernestg

    (@ernestg)

    Hey, the auto-posting of games is almost perfected. Now I just have a question to ask. If I post something (a game) and it posts the thumbnail in the post, is there anyway to set that image to become the background/featured image?

    EDIT: Basically, I’m using a plugin that automates the whole process, but, I don’t get a fancy little featured image automatically, but it does post the thumbnail that is downloaded onto my server.

    This is the code in the plugin:

    <p>
      <div style="float:left;margin-right: 10px; margin-bottom: 10px;">
        %THUMB%
      </div>
      <h2>Description</h2>
      <p>%DESCRIPTION%</p>
      <h2>Instructions</h2>
      <p>%INSTRUCTIONS%</p>
    </p>

    So I’m hoping there’s some way to to take %THUMB% and set it as the featured image, or to change my original code and make it show up as the background…

    Then this whole website would be complete and automated!

    If I post something (a game) and it posts the thumbnail in the post, is there anyway to set that image to become the background/featured image?

    i think there is no way to turn a post image directly into the featured image;

    can you link to a typical post, so i can have a look?

    would this be the only image in the post?
    which size would it be?
    there might be a possibility to use it instead of the post-thumbnail for the background in the grid posts…

Viewing 15 replies - 31 through 45 (of 69 total)
  • The topic ‘Grid of Posts’ is closed to new replies.