Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter Scribe

    (@scribe)

    No, I didn’t do anything. But you are right, the posts are now appearing, so it has resolved itself. Don’t know what happened, but I’m happy. Problem resolved. 😀

    Thread Starter Scribe

    (@scribe)

    It’s OK. I found a page advising me to access the theme file through ftp and rename the folder which converts the theme back to the default. There must have been a clash between the new setting and the theme as disabling the theme gave me access to the dashboard. I have changed the setting back to 150×150 and reactivated the theme, and now all is good.

    Thread Starter Scribe

    (@scribe)

    Well, I decided to take a risk and just do what Dantesnake suggested. I deleted the entire plugin file via ftp and the problem is fixed. I have since uploaded new downloads of each plugin I want to continue using and everything is working as normal again. 🙂

    Thread Starter Scribe

    (@scribe)

    I thought of doing that but was concerned that it would upset the inner workings of WordPress.

    Do you think this is the only option I have?

    Thread Starter Scribe

    (@scribe)

    All is working just fine now. Thank you.

    Thread Starter Scribe

    (@scribe)

    I figured it out myself. The following code lists all the posts (by title only) from one category on a page.

    <?php $posts = get_posts( "category=2&numberposts=100" ); ?>
    <?php if( $posts ) : ?> 
    
    <div class="section" id="egyptian">
    <h2>Egyptian</h2>
    <ul>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> 
    
    <li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li> 
    
    <?php endforeach; ?>
    </ul>
    </div> 
    
    <?php endif; ?>

    Now, I need to know how to exclude one post from this loop ie post id = 688. Any suggestions?

    Thread Starter Scribe

    (@scribe)

    OK, I found a link to a page that gave me the following code. It works except it only shows 5 posts. How can I change the coding so that it shows all the posts?

    <?php $posts = get_posts( "category=2" ); ?>
    <?php if( $posts ) : ?> 
    
    <div class="section" id="egyptian">
    <h2>Egyptian</h2>
    <ul>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> 
    
    <li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li> 
    
    <?php endforeach; ?>
    </ul>
    </div> 
    
    <?php endif; ?>
    Thread Starter Scribe

    (@scribe)

    I’ve tried a couple of things, but they don’t work.

    Example:

    <?php
    query_posts(‘cat=2’);
    ?>

    This causes a repetition on the page, which then crashes the page. Am I heading in the right direction? What am I doing wrong?

    Thread Starter Scribe

    (@scribe)

    Thank you Whooami, the problem has been solved. I appreciate your help and I learned a lot from this “exercise”.

    Many thanks.

    Thread Starter Scribe

    (@scribe)

    Thank you. Any suggestions?

    Thread Starter Scribe

    (@scribe)

    OK, I managed to get help from elsewhere and I now have a validated page, but the sidebar is still dropping down under the content when I use IE6 only.

    Is there anything else I can try?

    Thread Starter Scribe

    (@scribe)

    After many hours I’ve managed to get the errors down to 24, but I don’t know how to fix the others (not including the four ul tags at the bottom).

    I know the errors are in the index page and have something to do with the div tags, but I need help with these ones. Can anyone point me in the right direction? What is wrong with the following?

    This is the coding:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="postwrapper wideposts" id="post-<?php the_ID(); ?>">
    			  <div class="title">
    				<small><?php the_time('j M Y') ?> <?php edit_post_link('(edit)'); ?></small>
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    			  </div>
    			  <div class="post">
    			    <div class="entry">
    			      <?php the_excerpt(); ?>
    				  <ul class="buttons">
    				   <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">Read More &raquo;</a></li>
    		            </div>
    
    			      <div class="special"><?php comments_popup_link('No Comments yet...', '1 Comment so far...', '% Comments already...'); ?></div>
    			      <div class="postinfo"><p>Filed Under:
    				  	<ul class="catlist">
                          <li><?php the_category('</li><li>') ?></li>
    	                </ul></p>
    			    </div>
    			  </div>
    			</div>
    
    		<?php endwhile; ?>
    
    	<?php else : ?>
    
    		<div class="title">
    		  <h2>Not Found</h2>
    		</div>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	<div class="title">
    	  <h2>Categories</h2>
    	</div>
    	<div class="post">
    	  <ul class="catlist">
            <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    	  </ul>
    	</div>
      </div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Thread Starter Scribe

    (@scribe)

    I don’t have the know how and I think it’s picking up pages on my “real” site, which I’ll be replacing in a few days anyway.

    Can someone help me please?

    Thread Starter Scribe

    (@scribe)

    Thank you. It’s so easy to do. I can’t believe I had so much trouble with it.

    Again, thank you.

    I found the answer. It’s simple and it works:

    Categories With Excludes

    Displays Category links sorted by name, shows # of posts for each Category, and excludes Category IDs 10 and 15 from the list.

      <?php wp_list_categories(‘sortby=name&show_count=1&exclude=10, 15’); ?>

    The above was taken from this page:

    http://codex.wordpress.org/Template_Tags/wp_list_categories#Categories_With_Excludes

Viewing 15 replies - 1 through 15 (of 22 total)