Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Forum: Plugins
    In reply to: category to a page
    Thread Starter grapheezy91

    (@grapheezy91)

    by the way! the sidebar is in the middle of the page! i want it to be on the top and stay there

    hi, i tried applying this code but it didnt work for me!
    heres my website

    https://www.wwww.wethebesttv.com/blog

    and i’m trying to put the blog category in the blog page so whenever i select the blog category i want it to post in the blog page…here is the blog page

    https://www.wethebesttv.com/blog/?page_id=10
    and here’s my page.php

    <?php get_header(); ?>
    <style>
    html,body {
    background:#0D0D0D;
    color:#565050;
    }
    </style>
    <div id="page">
    
    	<div id="insidecopy">
        	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
            <?php if (is_page(blog)) {
          query_posts("cat=9");
       } ?>
    
        	<div class="copycontent"><a name="read"></a>
                <h2><?php the_title() ?></h2>
                <p><?php the_content(''); ?></p>
            </div>
            <?php endwhile; else: ?>
    		<?php endif; ?>
           <div id="altsidebar">
    		<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Sidebar') ) : ?>
                <div class="altsideblock">
                    <h3>Configure Your Sidebar!</h3>
                    <p>To remove this message, configure your sidebar widgets throught the WordPress admin control panel.</p>
                </div>
            <?php endif; ?>
    
        </div></div>
    </div>
    
    <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)