csleh
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need to wrap text around imageThat sounds right, and the pages are using that style sheet, so the theme is working.
If you go to Appearance, Editor. They stylesheet (style.css) should be the one in the editor. If not, on far right is list of theme files. The first group says “Templates”, scroll down until you see “Styles” and choose Stylesheet (style.css).
Just scroll down to the bottom, add the code, update file. Then visit the page in question and refresh the browser. It should work.
Forum: Fixing WordPress
In reply to: Need to wrap text around imageThe code should be in the style.css file, should be called “stylesheet” on the right when looking at theme files (i’m using wp 2.7).
Unless you’re viewing in internet explorer 7, you won’t see the change pasted to the ie7.css file.Forum: Themes and Templates
In reply to: Intergrating WordPress Theme in Other PagesJust to be clear, you are editing template files in your theme and not adding code to a Page you’ve posted, correct?
The page template in your theme should already be calling for the header and footer. If it’s giving you trouble, try uploading the original template file or copy the code from the single post file and edit as needed for the page.
Posting the top portion of the page template would help.
Forum: Fixing WordPress
In reply to: trouble excluding categoryoops, it posted twice
Forum: Fixing WordPress
In reply to: trouble excluding categoryOK, so I have something fudged. Using this:
<?php query_posts(array('category__and' => array(15,31))); ?> <?php while (have_posts()) : the_post(); ?> <h6><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h6> <?php the_excerpt(); ?> <p class="readmore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Read full <?php the_title(); ?> story</a></p> <?php endwhile;?> <?php query_posts('cat=15&showposts=1&offset=1'); ?> <?php $posts = get_posts('category=15&numberposts=1&offset=1'); foreach ($posts as $post) : start_wp(); ?> <p class="readmore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endforeach; ?> <?php query_posts('cat=16&showposts=1'); ?> <?php $posts = get_posts('category=16&numberposts=1&offset=0'); foreach ($posts as $post) : start_wp(); ?> <p class="readmore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endforeach; ?>But it only works if there is a single category along with featured. Categories 15 and 16 are children of category 17, is there any way to have the first post be most recent post in 17, with 1 each of 15 and 16 shown below, but no duplicates?
Forum: Fixing WordPress
In reply to: Need to wrap text around imageThe code button shows html formatting for the post, and is not the same as css. CSS is the themes “style.css” you can see on the edit themes tab.
First, remember that the editor is merely showing you content. It does not reflect how that content will look on the site — the theme’s stylesheet in charge of that.
The image on this post is in a div. If you add this to the bottom of the stylesheet, text will wrap around your image:
#attachment_280 {float:left;padding:0 12px;}But you’ll NEED TO TEST after adding. Put in the code, save the change, then visit pages in your site. i’m not familiar with your theme/template files so this fix might mess something else up. Unlikely though.
Forum: Themes and Templates
In reply to: Strange theme problemtry grabbing the content of the wordpress page and running through an html validator. If any little thing did get left off — which makes ie all hissy — the validator will tell you.
Forum: Fixing WordPress
In reply to: Removing HTML tags from WYSIWYGMy clients are like that too. I generally say they can write in Word, but save it as a txt and open in notepad before pasting. I tell them it’s a bug in WordPress (though I know it isn’t). It seems to be something they understand better than “just don’t do it.”
Then I try not to visit the site too often 😉
Forum: Themes and Templates
In reply to: Blog does not load properly on clientis the url correct in admin under settings / general?
good reference for making changes and still have a working site:
http://codex.wordpress.org/Moving_WordPressThe problem was where the main loop began in the document. it has to start after querying posts.
Forum: Fixing WordPress
In reply to: problem with in_categoryOkay, I had to drop the “if in_category” part, and put the code right into the single post code (no link to sidebar)
Used this:
<?php $my_query = new WP_Query('cat=6&showposts=15'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <ul><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li></ul> <?php endwhile; ?> <ul class="lineabove title notopmargin"><li>Client News</li></ul> <?php $my_query = new WP_Query('cat=5&showposts=15'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <ul><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li></ul> <?php endwhile; ?>BUT had to make sure the beginning of page loop was AFTER the above. Works a treat!
Forum: Fixing WordPress
In reply to: Add Media “Choose Files To Upload” Not WorkingI had this problem last month. For me, the browser had a newer version of flash installed than worked with wordpress. Using a browser that wasn’t updated was the only way I could edit. Have since upgraded wordpress to 2.7 and that works fine.
Forum: Fixing WordPress
In reply to: problem with in_categoryNot exactly (these are single posts), but I might be thinking about this backwards.
Both category a and b are news items. Perhaps I need to make them children category of a master “news” category. Then in this sidebar I can display a list of all child categories and posts within those categories of the master “news” category.
At that point perhaps the code can be the within-the-loop kind. Will investigate this now.
Any tips or alternate ways of approaching the problem appreciated though.
Forum: Themes and Templates
In reply to: Name is Missinglooks like something got cut from the header.php file for the title. try this
<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> <?php } ?> <?php wp_title(); ?></title>I upgraded (heart-pounding white screen of death for a while!) but that didn’t help. WOuld like to try adding the cache bit but need to figure out where… looks like it goes inside a bit of code so need to find that. Will post when I know.