alfie
Forum Replies Created
-
Forum: Plugins
In reply to: Spellchecker problem with Tiny MCE Advancedany help on this pls?
Forum: Fixing WordPress
In reply to: Duplicate ‘Categories’ admin menu item – CMS-Like Admin MenuIt’s coming from the CMS-like Admin Menu plugin, when i disable it everything is back to normal. but havent found a solution to this, id like to use this plugin
Forum: Fixing WordPress
In reply to: Duplicate ‘Categories’ admin menu item – CMS-Like Admin Menuill try that and post back, thanks
Forum: Fixing WordPress
In reply to: Duplicate ‘Categories’ admin menu item – CMS-Like Admin Menuits in the wp-admin section which is password protected
any help on this pls? thanks
Forum: Themes and Templates
In reply to: Problem with sidebar and main contentok great solved thanks
Forum: Themes and Templates
In reply to: Problem with sidebar and main contenti’ve also put the site online for anyone who wishes to examine it
Forum: Themes and Templates
In reply to: Problem with sidebar and main contenti’m also noticing that if i switch the sidebar to come after the main content column, it works. obviously however it displays the sidebar to the right of the main content column, whereas I want it to display to the left of the main content.
Anyone help me out please? this is probably a loop issue, but I don’t know so much yet to be able to troubleshoot it.
thanks
This is the page.php that works but displays the sidebar on the other side from where i want it to go.
<?php get_header(); ?> <div id="content"> <div id="content-main"> <div class="content-box"> <div class="content-box-top"></div> <div class="content-box-middle"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <div class="content-box-middle-gradient"> <?php the_content(); ?> </div> <!-- content-box-middle-gradient --> <?php endwhile; endif; ?> </div> <!-- content-box-middle --> <div class="content-box-bottom"></div> </div> <!-- content-box --> </div> <!-- content-main --> <?php get_sidebar(); ?> </div> <!-- content --> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: Problem with sidebar and main contentthanks, but still ain’t working
Sidebar.php
<div id="sidebar"> <div id="sidebar-top"></div> <h2>Latest News</h2> <?php // hold the current query results in a temp variable $temp_query = $wp_query; $count=0; $posts_per_page=2; query_posts('cat=3&posts_per_page='. $posts_per_page ); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h3><?php the_title(); ?></h3> <p><?php the_content(); ?></p> <?php $count++; if ($count < $posts_per_page) { ?> <div class="hr"><hr /></div> <?php } ?> <?php endwhile; endif; ?> <?php get_a_post(25); ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <?php get_a_post(29); ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <?php global $temp_query; // now back to our regularly scheduled programming $wp_query = $temp_query; ?> <div id="sidebar-bottom"></div> </div> <!-- sidebar -->Page.php
<?php get_header(); ?> <div id="content"> <?php get_sidebar(); ?> <div id="content-main"> <div class="content-box"> <div class="content-box-top"></div> <div class="content-box-middle"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <div class="content-box-middle-gradient"> <?php the_content(); ?> </div> <!-- content-box-middle-gradient --> <?php endwhile; endif; ?> </div> <!-- content-box-middle --> <div class="content-box-bottom"></div> </div> <!-- content-box --> </div> <!-- content-main --> </div> <!-- content --> <?php get_footer(); ?>Forum: Themes and Templates
In reply to: Problem with sidebar and main contentactually no, if i take off the code
<?php get_a_post(25); ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <?php get_a_post(29); ?> <h2><?php the_title(); ?></h2> <?php the_content(); ?>then the main content column repeats the posts that are shown in the sidebar, instead of displaying the content of the page.
Forum: Themes and Templates
In reply to: Problem with sidebar and main contentno get_a_post is a plugin http://guff.szub.net/2005/01/27/get-a-post/
I took off the code you mentioned but its still not working :S
Forum: Fixing WordPress
In reply to: selecting a class or id from wysiwyg editorany help on this please? thanks
Forum: Fixing WordPress
In reply to: custom menu li names with wp_list_pagesok thanks that solved it 😀
Forum: Fixing WordPress
In reply to: custom menu li names with wp_list_pagesyes i found that thanks, the only thing i have left to do is to modify the page names that appear in the menu, not sure if this is possible, if it is I’d like to know how to do it. thanks
Forum: Fixing WordPress
In reply to: How to detect if its the last post being retrievedok for some reason that didn’t work, but this did, so problem solved
<?php $count=0; $posts_per_page=3; query_posts('cat=3&posts_per_page='. $posts_per_page ); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h3><?php the_title(); ?></h3> <p><?php the_content(); ?></p> <?php $count++; if ($count < $posts_per_page) { ?> <div class="hr"><hr /></div> <?php } ?> <?php endwhile; endif; ?>