Forum Replies Created

Viewing 15 replies - 61 through 75 (of 80 total)
  • Thread Starter smartyd

    (@smartyd)

    Disregard the second part of the question (resolved).

    Why doesn’t the code
    <?php $i = 0; while (have_posts()) : the_post(); $i++; ?>
    work to truncate the remaining posts after the first post?

    Thread Starter smartyd

    (@smartyd)

    It was div=”content” that was messing things up. Changed it to div=”content1″ and created a new style for it–will some new cool features!
    Thanks

    Forum: Plugins
    In reply to: Infolinks on WP 3.0
    Thread Starter smartyd

    (@smartyd)

    Got it to work, but YUK! It’s intrusive and un-relevant as H! Won’t be using it, but thanks. Looking for subtle ways of advertising if anyone has ideas.
    Thanks

    For those who still have a wandering sidebar issue with pageofposts, this is how I solved mine (https://www.theamazingagingmind.com/seniors-people-with-abilities/)

    The div=”content” in the pageofposts was dictating the format of the page, making the text run all the way across the page and hence making the sidebar drop below it. So I changed “content” to “content1” and created a new style for “content1”. The super cool thing about this solution is that I can have a different background–shoot different everything–on this page. So I put an animated gif in the background, creating a header for the page.
    Only problem I have is creating a blank space on the actual page top so the background gif will show. My solution (which I don’t like) was to put a period there, formatted h1. It gave me the space, but the dot is annoying.
    Can anyone show me how to add blank space at the top of a pageofposts?
    Thanks

    To add text to the intro, put it here on the pageofposts.php (at the very top):

    <div id=”content” class=”narrowcolumn”>
    <h1>Put your intro text here</h1>
    <?php
    if (is_page() ) {

    Thread Starter smartyd

    (@smartyd)

    Here’s the pageofposts code in case the problem is here:

    <?php
    /* Template Name: PageOfPosts*/
    get_header(); ?>
    <div id=”content” class=”narrowcolumn”>
    <?php
    if (is_page() ) {
    $category = get_post_meta($posts[0]->ID, ‘category’, true);
    }
    if ($category) {
    $cat = get_cat_ID($category);
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    $post_per_page = 14; // -1 shows all posts
    $do_not_show_stickies = 1; // 0 to show stickies
    $args=array(
    ‘category__in’ => array($cat),
    ‘orderby’ => ‘date’,
    ‘order’ => ‘DESC’,
    ‘paged’ => $paged,
    ‘posts_per_page’ => $showposts,
    ‘caller_get_posts’ => $do_not_show_stickies
    );
    $temp = $wp_query; // assign orginal query to temp variable for later use
    $wp_query = null;
    $wp_query = new WP_Query($args);
    if( have_posts() ) :
    while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h2><?php the_title(); ?></h2>
    <div class=”entry”>
    <?php the_content(‘Read the rest of this entry »’); ?>
    </div>
    </div>
    <?php endwhile; ?>
    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(‘« Older Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Newer Entries »’) ?></div>
    </div>
    <?php else : ?>
    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php get_search_form(); ?>
    <?php endif;
    $wp_query = $temp; //reset back to original query

    } // if ($category)
    ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thread Starter smartyd

    (@smartyd)

    In the stylesheet? I tried putting it exactly like this in the stylesheet:

    .narrowcolumn {
    width:500px;
    }

    No go, though.

    Oops. It would help if I added the URL
    https://www.theamazingagingmind.com

    I even tried the homepage_excerpts plugin to no avail. I’s using WordPress 3.0 if that makes a difference.
    Thanks

    Where would I put this in my code? I don’t see a the_content to be replaced:

    <?php get_header(); ?>
    <div id=”postentry”>

    <?php if (have_posts()) : ?>
    <?php include (TEMPLATEPATH . ‘/headline.php’); ?>
    <?php while (have_posts()) : the_post(); ?>

    Thanks

    Forum: Plugins
    In reply to: Spaces in Posts
    Thread Starter smartyd

    (@smartyd)

    Everything solved. I put the css code into the stylesheet without the <style></style> tags and all is fine!

    Forum: Plugins
    In reply to: Where to put CSS?

    Could you translate this to English? I have a css code that I can’t find a spot for either. It does work if I put it directly in the post, but I would like to house it elsewhere so I can call it up by any or all posts. Can you take a look at my site and give me some help? I tried putting the code (the “thumbnail” css you see in a couple of the posts) in the Stylesheet, but it doesn’t work.
    Much appreciated.
    Marty

    Forum: Plugins
    In reply to: electric shock
    Thread Starter smartyd

    (@smartyd)

    I got the effect i was looking for (a visual effect). Go to https://www.theamazingagingmind.com/2010/alzheimers-and-stigma-tazing/ and look at the word “tazing” at the bottom of the post.

    Forum: Plugins
    In reply to: Spaces in Posts
    Thread Starter smartyd

    (@smartyd)

    Thanks, alchymyth,
    I changed the image altogether, and now the border hugs the image.
    But I still need to know where I should put the javascript I used on the page. I’d like to use it in all posts (or have the option to), but there has to be a way to put it in the stylesheet or function.php so I don’t have to paste it into the post itself. I tried putting the javascript into the stylesheet with no success.
    Can anyone tell me where to put this css code? In Blogger, I just put it in the head section of the main html page (see https://traveling-family.blogspot.com), but am lost in this wordpress theme.
    Thanks!!

    Forum: Plugins
    In reply to: Spaces in Posts
    Thread Starter smartyd

    (@smartyd)

    Finally found a solution to the spaces at the top of the post.
    I had to go into the stylesheet and change the spacing before the post to zero, then add spacing after the postdate to 18px. For some reason, that’s the only combo that worked.
    Now, to find a solution to the frame around the image…

Viewing 15 replies - 61 through 75 (of 80 total)