wp_guy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Sidebar problemThe you just have to move
<?php include(TEMPLATEPATH."/l_sidebar.php");?>up… like this:<?php get_header(); ?> <div id="content"> <?php include(TEMPLATEPATH."/l_sidebar.php");?> <div id="contentleft"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1>" rel="bookmark"><?php the_title(); ?></h1> <p>Geschreven op <?php the_time('j F Y'); ?> Geplaatst in de rubriek <?php the_category(', ') ?> | <?php comments_popup_link('Reageer!', '1 Reactie', '% Reacties'); ?></p> <?php the_content(__('Klik om verder te lezen'));?><div style="clear:both;"></div> <!-- <?php trackback_rdf(); ?> --> <?php endwhile; else: ?> <p><?php _e('Sorry, geen berichten die overeen komen met uw criteria.'); ?></p><?php endif; ?> <h3>Reacties</h3> <?php comments_template(); // Get wp-comments.php template ?> </div> <?php include(TEMPLATEPATH."/r_sidebar.php");?> </div> <!-- The main column ends --> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: Sidebar problemThen… I think it’s not just a matter of CSS… since the columns should load in order…
You could separate the sidebar.php in two: sidebar-left.php and sidebar-right.php and then change your index.php file to load the left sidebar, then the main content and then the right sidebar… something like:
<?php get_sidebar("left"); ?> <div id="content"> ... </div> <?php get_sidebar("right); ?>Then the CSS part should be much easier.
Forum: Themes and Templates
In reply to: Sidebar problemTry:
#l_sidebar { float: left; }#r_sidebar { float: left; }#contentleft { float: right; }Forum: Themes and Templates
In reply to: Widget problemIndeed… what the code in your sidebar.php file does is: If the widgets feature is available and there are widgets, then show these widgets, if not, then show the regular sidebar.
If you want your regular sidebar AND the widgets then you might want to change your code to something like:
<div id="sidebar"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <!-- What happens if there are no widgets --> <?php endif; ?> <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> <h2>Archives</h2> <?php wp_get_archives('type=monthly'); ?> <h2>Calendar</h2> <?php get_calendar(1); ?> <h2>Categories</h2> <?php wp_list_cats('sort_column=name&optioncount=0&hide_empty=0&all=1'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php get_links_list(); ?> <?php } ?> </div>Forum: Plugins
In reply to: get category ID from Sluggood luck with that 😉
Forum: Fixing WordPress
In reply to: Users must register to read posts ?how so?
Forum: Fixing WordPress
In reply to: how to query database?It prints “Array” because $wpdb->get_results() returns an array of the results.
try:
print_r($mylink);or, I guess:
echo $mylink[0]->idForum: Plugins
In reply to: get category ID from SlugNo problem… I just tend to avoid raw database queries in case the database structure changed in future WP releases.
Forum: Fixing WordPress
In reply to: Users must register to read posts ?Ooh… much better!
Forum: Fixing WordPress
In reply to: header.php does not validate. Shouldn’t it?Raw PHP files don’t validate, because they contain PHP code, and PHP code isn’t HTML.
Try validating the whole site instead of just the PHP files.
Forum: Fixing WordPress
In reply to: Users must register to read posts ?There is a password protection option in the write post page
Forum: Fixing WordPress
In reply to: Embed WP PHP in my Page?I’d recommend you create a different page template with a separate loop.
Custom loop extracted from here:
// Get the last 10 posts in the special_cat category. <?php query_posts('category_name=special_cat&showposts=10'); ?> <?php while (have_posts()) : the_post(); ?> <!-- Do special_cat stuff... --> <?php endwhile;?>Forum: Fixing WordPress
In reply to: Paypal link problemI get the following error:
We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the “Ask Seller a Question” link on the listing page. When you have the correct email address, payment can be made at http://www.paypal.com.
In fact, there seems to be something wrong in the button code since there is no email address.
Forum: Themes and Templates
In reply to: Widget problemlol >:-O
Forum: Themes and Templates
In reply to: Widget problemhttp://wpguy.com/contact 😉 I don’t want to get spammed by everyone 😀