category to a page
-
hi, i tried applying the code but it didnt work for me!
heres my websitehttps://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 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘category to a page’ is closed to new replies.