chrisauman
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Widgets on Pages] Putting widget on all pages automaticallyHi Todd,
I just upgraded the plugin today and screwed myself. Now where I have the testimonials rotating on the homepage it no longer works with <?php widgets_on_template(“wop_1”); ?>
Thoughts?
Forum: Plugins
In reply to: [Plugin: Widgets on Pages] Putting widget on all pages automaticallyTodd, that worked great. Thanks for the quick response. Sometimes these easy fixes aren’t so obvious and just need a little documentation.
Forum: Plugins
In reply to: [Plugin: Widgets on Pages] Putting widget on all pages automaticallyHi Todd,
Great plugin. Thanks for your time. I’m trying to insert the line of code so the widget appears on all pages but it doesn’t seem to be doing anything for me. I’ve tried a bunch of different ways to simply show the widget after my content and I get nothing. I only have one widget thats listed as #1 and I’m using this code below:
<?php widgets_on_template(“wop_1”); ?>
Thoughts?
Forum: Themes and Templates
In reply to: Two column posts?This is a great hack and I almost have it working. The problem is that you can’t format any of your content. There are no line breaks and any other formatting from the style sheet is lost. For example, I have 4 or 5 nice columns on the page and the text is black. With this example, all of the text scrunches together and the text is black.
If anyone has any idea how to rewrite this code to get around this so we can format the text with the visual editor I would appreciate it. Below is the exact code that I’m using.
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”><h1><?php the_title(); ?></h1>
<?php endwhile; ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
$page_columns = explode(“[–column–]”, $post->post_content);
endwhile; endif;print ‘<table width=”950″ border=”0″><tr><td width=”650″ valign=”top”>’;
print $page_columns[0];
print ‘</td><td width=”40″>’;
print ‘ ‘;
print ‘</td><td valign=”top”>’;
print $page_columns[1];
print ‘</td></tr></table>’;?>
</div>Forum: Themes and Templates
In reply to: Multiple Loops, two columns, two categoriesJohn, this worked great. I wanted to add one post from one category (featured news) at the top of my homepage and then have all my regular blog posts appear under that. It worked like a charm.
FYI…just to clarify this for others, this change happens in your index.php file. Here is the code that I used to accomplish this.
<?php query_posts(‘category_name=featurednews&showposts=1’); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?><div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<div id=”date”><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></div><div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<!–<p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>–> </div>
<?php endwhile; ?>
<?php endif; ?><?php query_posts(‘category_name=blog&showposts=5’); ?>
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
<div id=”date”><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></div><div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div>
<!–<p class=”postmetadata”><?php the_tags(‘Tags: ‘, ‘, ‘, ‘
‘); ?> Posted in <?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></p>–> </div>
<?php endwhile; ?>
Forum: Fixing WordPress
In reply to: Textarea shows html tagsYes, I am experiencing this same problem and WordPress seems to be adamant about inserting extra break and paragraph tags within my text area element. I’ll post here if I find a solution.