Return to Support

Need help formatting a page

Home Forums Graphene WordPress theme Support Need help formatting a page

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #6045
    alexy58
    Member

    I have tried several times to figure this out.

    I would like to have a page that is formated like the following sample. It will not be my home page but a page that will be on my sub menu.

    Showcase

    I only want to put post on this page that are sorted by a specific category. I also don’t want this specific category to show up on any other page on my website.

    I also want to format each post like the following only I do not want to use Vimeo. I would prefer Youtube if it will work with your theme.

    http://www.cgl3d.com/?page_id=110

    Can you give me any help with what I am trying to accomplish? My website is http://www.kceliteathletics.com and the page I want to put the posts on by catagories is sub menu- 18U I will have about 20 post that will need to show up.

    Thanks.

    #33168
    alexy58
    Member

    Can anyone help?

    #33169
    Josh
    Member

    Well… to be honest… your question is all over the place. But… I’ll attempt it…

    Quote:
    I would like to have a page that is formated like the following sample. It will not be my home page but a page that will be on my sub menu.

    I think this would be best accomplished by using a custom template for that particular page. One without sidebars, etc. Try creating a page, and using a different template from the box over on the right. Play around with it and see what results you get.

    Quote:
    I only want to put post on this page that are sorted by a specific category. I also don’t want this specific category to show up on any other page on my website.

    If you are using a custom menu, you can keep pages from showing anywhere in your site navigation. So, you can create a custom category page, assign all posts you want to appear there to that custom category, and then link to it however you like.

    Quote:
    I also want to format each post like the following only I do not want to use Vimeo. I would prefer Youtube if it will work with your theme.

    Again, here, you’ll most likely want to use a custom template. You can make any type of embedded video work with Graphene… it’s just a matter of finding the best method.

    So, you’ll need to do some “homework” of your own… play around with the templates… and see what you can come up with. Also, check into custom menus if you haven’t already.

    #33170
    alexy58
    Member

    Okay maybe I was a little all over the place….

    What I need help with is the following……

    1st question

    Can I have a website that has more than one webpage that contains post on it that only show certain categories?

    2nd Questions

    I know how to add pages…and how to pick a template. How do I get post to show up on that page?

    #33171
    Syahir Hakim
    Keymaster
    #33172
    alexy58
    Member

    I read that post and that is exactly what want to accomplish…

    I am a newbie….worse that a newbie. I have learned your theme but I cannot do much more than that.

    Can you direct me how I can set up a page to show post? I have been racking my brain trying to figure out how I can make a page show post? My home page already shows my posts and a slider but I would like to have other pages show posts?

    Thanks.

    #33173
    alexy58
    Member

    Okay hope this helps….

    This is exactly what I want to do….only the code that was listed was for a twentyeleven theme. What do I need to do in order to accomplish this on your theme?

    A Page of Posts

    The following custom Page Template file displays posts from two specific categories (specified by their category slugs). It is designed to work within a child Theme of the Twenty Eleven theme. If you are using another theme, you need to replicate the HTML structure of your own theme within the template.

    Save this to pageofposts.php and then assign the Page of Posts Template to your new Page:

    Here is the code that it gave me: By the way I don’t know which part is the HTML Structure?

    <?php
    /*
    Template Name: Page Of Posts
    */

    // if you are not using this in a child of Twenty Eleven, you need to replicate the html structure of your own theme.

    get_header(); ?>
    <div id="primary">
    <div id="content" role="main">
    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    'category_name' => 'antiquarianism, championship', // Change these category SLUGS to suit your use.
    'paged' => $paged
    );
    query_posts($args);
    if( have_posts() ) :?>

    <?php twentyeleven_content_nav( 'nav-above' );?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>
    <?php twentyeleven_content_nav( 'nav-below' ); ?>

    <?php else : ?>
    <article id="post-0" class="post no-results not-found">
    <header class="entry-header">
    <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
    </header><!-- .entry-header -->

    <div class="entry-content">
    <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
    <?php get_search_form(); ?>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <?php get_footer();

    #33174
    Prasanna SP
    Member

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard. I’ve corrected the above post for you.

    #33175
    Prasanna SP
    Member

    Try something like this. May be you need to tweak it a bit. I’m not even sure what you are going to accomplish. I didn’t read your posts. Just looking at the code you’ve given in the previous post, I came up with

    <?php
    /*
    Template Name: Page Of Posts
    */

    get_header(); ?>

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    'category_name' => 'antiquarianism, championship', // Change these category SLUGS to suit your use.
    'paged' => $paged
    );
    query_posts($args);
    if( have_posts() ) :?>

    <?php while ( have_posts() ) : the_post(); ?>
    <?php get_template_part( 'loop', get_post_format() ); ?>
    <?php endwhile; ?>
    <?php graphene_posts_nav(); ?>

    <?php else : ?>
    <div id="post-0" class="post no-results not-found">
    <h1 class="post-title entry-title">
    <?php _e( 'Nothing Found', 'graphene' ); ?></h1>
    </div>

    <div class="entry-content">
    <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'graphene' ); ?></p>
    <?php get_search_form(); ?>
    </div>
    <?php endif; ?>
    <?php get_footer(); ?>

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.