a new link for blog posts?
-
Hi there,
currently i am a newbie to this wordpress stuff, im kinda learning pretty quickly, a friend designed my site for me and im trying to tweet the page a little bit.
I have an artists section, and i decided to replace the “forum” tab, and put a “blog” tab instead and i moved the forum tab to the left of hte screen (you will see at the below link)
However, i want to be able to set up the “blog” tab to display new posts correctly and cant seem to get it to work.
Ive set up a new category with the slug “phrakblog” and ive copied over these codes from other sections in the stylesheet under artists
.usual2 #blog {
padding:2px 0 2px 2px;
clear:left;
color:#fff;
}^^(this i beleive is for the actual link, which works ok)
and also this;
#content #latestblog {
float : left;
margin-top : 5px;
width : 236px;
background : #151515;
}#content #latestblog h2 {
float : left;
height : 47px;
width : 446px;
padding-left : 10px;
padding-bottom : 0px;
background : url(images/instrumentals-top.jpg) no-repeat 0 0;
}#content #latestblog .post-content {
float : left;
width:445px;
padding-left : 1px;
}#content #latestblog .post-content .postend {
margin:30px 0 15px 0;
width:444px;
height:1px;
background:url(images/post-seperator.jpg) no-repeat;
}#content #latestblog .post-content h3 {
border-bottom: #333333 1px solid;
padding: 0 0 5px 10px;
}
#content #latestblog .blog-content {
margin-top:-25px;
padding: 5px;
}
#content #latestblog .post-content .post-info {
float:right;
color:#0081F9;
font-size:12px;
font-weight:bold;
text-transform:uppercase;
}at the bottom of hte section named “Style for usual tabs” on the stylesheet.css
Ok, now with that being said, ive loaded my “phrakartisttemplate.php” and put this code in for the blog
<!– begin latest blogs–>
<div id=”blog”>
<h2></h2>
<!– begin post content –>
<div class=”post-content”>-
<?php $blogposts = new WP_Query(‘category_name=phrakblog&showposts=5’);
while ($blogposts->have_posts()) : $blogposts->the_post(); ?><!– begin post roll–>
<div class=”post”><h3>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></h3><div class=”star-rating”><?php the_ratings(); ?></div>
<div class=”blog-content”>
<?php the_content(); ?>
</div>
<div class=”post-info”>
<p class=”postmetadata”><?php the_time(‘l, F jS, Y’) ?> – <?php the_category(‘, ‘) ?> – <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?> </p>
</div></div>
<!– end post roll–>
<div class=”postend”></div>
<?php endwhile; ?>
</div>
<!– end post content –></div>
<!– end latest blogs –>
Can anyone tell me what im doing wrong? Ive set up the category to allow me to post new blogs, however when i click the blogs tab i get “there is no such container”
please help! (excuse the long post)
The website is found here http://www.soundrealmstudios.com/
The artists page is found here http://www.soundrealmstudios.com/artists/phrak/thank you so much.
-
<?php $blogposts = new WP_Query(‘category_name=phrakblog&showposts=5’);
- The topic ‘a new link for blog posts?’ is closed to new replies.