Vietson
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Footer overlapping on a fixed floated headerThe easiest way to fix this error is to add an empty div:clear:both under div#content
Forum: Fixing WordPress
In reply to: Article with Multiple Pages!!Ahh, I finally got it to work.
<?php if (( ($page = $wp_query->get('paged')) || ($page = $wp_query->get('page')) ) && $page == 2 && get_post_custom_values("img2")) { /* Get Img 2 */ } elseif (( ($page = $wp_query->get('paged')) || ($page = $wp_query->get('page')) ) && $page == 3 && get_post_custom_values("img3")) { /* Get Img 3 */ } elseif (get_post_custom_values("img")) { /* Get Img */ } ?>
Forum: Fixing WordPress
In reply to: Article with Multiple Pages!!Thanks for the reply. I was able to get the code working for page 2, and so on, but I couldn’t get it to work for page 1.
Here’s the code I have…
<?php if (( ($page = $wp_query->get('paged')) || ($page = $wp_query->get('page')) ) && $page == 1 && get_post_custom_values("img")) { /* Display Image Header 1*/ } elseif (( ($page = $wp_query->get('paged')) || ($page = $wp_query->get('page')) ) && $page == 2 && get_post_custom_values("img2")) { /* Display Image Header 2*/ } elseif (( ($page = $wp_query->get('paged')) || ($page = $wp_query->get('page')) ) && $page == 3 && get_post_custom_values("img3")) { /* Display Image Header 3*/ } ?>
Forum: Fixing WordPress
In reply to: Can I number rather than date postsYou could back date posts like what MichaelH said, or you could use the the little php code “the_ID” to show the article ID number.
Forum: Themes and Templates
In reply to: Theme Layout ProposalIn my own opinion, I don’t see how that would make it easier. I think that would make it a lot more complicated. Its complicated because everything is on 1 page. It will be over crowded with 100s or 1000s lines of html.
Forum: Developing with WordPress
In reply to: Partial Import WordPress to WordPressYou can manually import your posts. Most db import only file size up to 3mb (or at least my server).
Forum: Themes and Templates
In reply to: add date & category to recent post?is “recent post list” a plugin or did you use query?
Forum: Fixing WordPress
In reply to: Remove Comments View From DashboardGo to wp-admin/options and see if what your user role is when they sign up. It should be Subscriber.
Subscriber can only see “dashboard” and “profile” page..
Forum: Fixing WordPress
In reply to: make the homepage post only one categoryI use something like this..
<?php query_posts('cat=1&showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> Your Post Content Replace cat=1, where 1 is the category number... showposts=1, where 1 is the number of post you want to show. <?php endwhile; ?>
Forum: Themes and Templates
In reply to: show one category on home.phpFrom
<?php query_posts('cat=31'); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>To This
<?php query_posts('cat=31'); ?>
<div id="content">
<?php while (have_posts()) : the_post(); ?>Forum: Themes and Templates
In reply to: Theme: Almost AutumnI figured out the problem. WordPress themes originally ouputs all sidebar header tags as H2, I changed it to H3 for some stupid reason that I’m still trying to figure out why atm.
Please go to here to redownload the theme as I have updated the layout footer.
Forum: Themes and Templates
In reply to: Theme: Almost Autumnohh…detele line 4 in single.php
That was the plugin i installed but forgot to take it off….
download the zip again..the error is fixed