Tabs in index.php
-
Hello, i had a problem im using word press in my site which is a great i really enjoy it alot
i just had a problem im running into which i place some tabs which i manually integrated into my index page which is tabber
i wanted to separate category’s into tabs for example one tab 1 is for news posts and another one music posts which i separated but for some reason my sidebar wont show up the sidebar, and anything under the tabs wont show also my tabs work correctly posts show up nicely? i hope someone can help me.this is what i got in my index.php
<!--?php get_header(); ?--><div class=”main”>
<div class="tabber"><div class="tabbertab">
<h1>Tab 1</h1>
<p></p><ul class="news">
<!--?php query_posts($query_string . '&cat=6'); ?-->
<!--?php while (have_posts()) : the_post(); ?-->
<li id="post-<?php the_ID(); ?>">
<h2>"><!--?php the_title(); ?--></h2><!--?php if(get_post_meta($post--->ID, "thumbnail", true)) : ?>
<img src="%3C?php%20echo%20get_post_meta%28$post-%3EID,%20" thumbnail",="" true);="" ?="">" />
<!--?php endif; ?-->
<div class="post">
<!--?php wpn_content_limit(get_the_content(),400); ?--> more.
</div>
<div class="clear"></div>
<span class="pinfo">
<!--?php comments_number(__('0'), __('1'), __('%')); ?--> CommentsPosted by <!--?php the_author_posts_link() ?--> on <!--?php the_time('F j, Y'); ?--> under <span><!--?php the_category(', ') ?--></span>
</span><!--?php endwhile; ?-->
<p></p>
</div><div class="tabbertab">
<h1>Tab 2</h1>
<p></p><ul class="news">
<!--?php query_posts($query_string . '&cat=4'); ?-->
<!--?php while (have_posts()) : the_post(); ?-->
<li id="post-<?php the_ID(); ?>">
<h2>"><!--?php the_title(); ?--></h2><!--?php if(get_post_meta($post--->ID, "thumbnail", true)) : ?>
<img src="%3C?php%20echo%20get_post_meta%28$post-%3EID,%20" thumbnail",="" true);="" ?="">" />
<!--?php endif; ?-->
<div class="post">
<!--?php wpn_content_limit(get_the_content(),400); ?--> more.
</div>
<div class="clear"></div>
<span class="pinfo">
<!--?php comments_number(__('0'), __('1'), __('%')); ?--> CommentsPosted by <!--?php the_author_posts_link() ?--> on <!--?php the_time('F j, Y'); ?--> under <span><!--?php the_category(', ') ?--></span>
</span><!--?php endwhile; ?-->
<p></p>
</div><div class="tabbertab">
<h1>Tab 3</h1>
<p></p><ul class="news">
<!--?php query_posts($query_string . '&cat=3'); ?-->
<!--?php while (have_posts()) : the_post(); ?-->
<li id="post-<?php the_ID(); ?>">
<h2>"><!--?php the_title(); ?--></h2><!--?php if(get_post_meta($post--->ID, "thumbnail", true)) : ?>
<img src="%3C?php%20echo%20get_post_meta%28$post-%3EID,%20" thumbnail",="" true);="" ?="">" />
<!--?php endif; ?-->
<div class="post">
<!--?php wpn_content_limit(get_the_content(),400); ?--> more.
</div>
<div class="clear"></div>
<span class="pinfo">
<!--?php comments_number(__('0'), __('1'), __('%')); ?--> CommentsPosted by <!--?php the_author_posts_link() ?--> on <!--?php the_time('F j, Y'); ?--> under <span><!--?php the_category(', ') ?--></span>
</span><!--?php endwhile; ?-->
<p></p>
</div></div>
<!--?php get_sidebar(); ?-->
<!--?php get_footer(); ?-->
</div> -
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
You are posting to the wrong support forum. Here at WordPress.COM we provide support only to those with free hosted WordPress.COM blogs. You must post to the correct support forum for your self hosted WordPress.ORG software which is different from ours. That support forum is here > http://wordpress.ORG/support/
-
-
- The topic ‘Tabs in index.php’ is closed to new replies.