crobley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show single post from category in an included php file?OK I think I have a pretty decent grasp of how multiple loops work but I’ve run into a little issue that I thought I had fixed.
When I have a single post in the category “Blog” it shows up on my home page just fine. However, when I add a second post into the “Blog” category – then the loop doesn’t seem to end. I end up with my home page repeating the 2 posts 100 times.
I thought I could eliminate this problem with a posts_per_page=2 but no luck.
<?php query_posts('category_name=blog&posts_per_page=2'); ?> <?php if (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <span style="font-size:14px;"><a href="<?php the_permalink(); ?>" class="blogtitles" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></span> <div style="width:128px; float:left"> <?php the_post_thumbnail();?> </div> <div style="width:700px; min-height:40px"> <?php the_excerpt(); ?> </div> </div><!-- #post-## --> <?php endif; ?> <?php endwhile; // end of the loop. ?>What am I missing?
Forum: Fixing WordPress
In reply to: Show single post from category in an included php file?Maybe there is a simpler way to do this.
Perhaps a widget that displays a category post and thumbnail in the sidebar :/Forum: Fixing WordPress
In reply to: Show single post from category in an included php file?After reviewing that I changed it to:
<?php $my_query = new WP_Query('category_name=featured-employee&posts_per_page=1'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <!-- Do special_cat stuff... --> <?php endwhile; ?>But now nothing shows up at all in that box. Very strange.
Forum: Fixing WordPress
In reply to: Show single post from category in an included php file?When I change it to get_posts it duplicates my home page content text?
Forum: Networking WordPress
In reply to: How to create a second child theme for subdomain multisite.Heres the solution:
I had to go to the Network Admin dashboard. From here click Themes. In there I could see my “ChildSub” wasn’t enabled for “Network”. Once I clicked that and returned back to the subdomains themes section in the Admin panel the “ChildSub” showed up.
Forum: Fixing WordPress
In reply to: Determining Home Page and Content Pages Twenty ElevenYour the man. Works perfectly 🙂
Forum: Fixing WordPress
In reply to: Determining Home Page and Content Pages Twenty ElevenStatic.
Forum: Fixing WordPress
In reply to: Determining Home Page and Content Pages Twenty ElevenWhen I do this:
<?php if ( is_home() ) { include("inc_home.php"); } else { include("inc_topcontent.php"); } ?>All pages display inc_topcontent.php. Very weird.
Forum: Themes and Templates
In reply to: Jquery slider works fine except on home page.My Home Page template had my javascript above the get_header(); function. So I just moved the java to the header.php file and it works now.
Forum: Fixing WordPress
In reply to: Problem uploading header while using multi-siteI figured it out.
When following the directions for a multi-site it says to create a blogs.dir in your wp-content folder. I had no idea what that meant so I made a file called blogs.dir. I deleted that and made a folder called blogs.dir and it works fine now.
Why not just say “Make a folder called blogs.dir”? :/
Anyway, works now.
Forum: Themes and Templates
In reply to: [Twenty Eleven] Remove link from page title.Here is an example: you can see the About Lisa Jarvis headline is hyperlinked.
Forum: Plugins
In reply to: [File Gallery] Broken in current wordpress?I am having the same problem and its for a enormous website with a ton of file-gallerys here:
http://www.capedwonder.com
I am really scared to update to V1.7 if there is any chance it can screw up the current file structures but I am hosed because my client needs to update for some Superman Convention(dorky I know).This is the one downside of WordPress is updating.
Forum: Fixing WordPress
In reply to: How to backup my WP site before upgdating to 3.2.1Thanks for the reply cube.
Alright, Im going to back-up as much as I can.Wish me luck in updating ;_;
Forum: Fixing WordPress
In reply to: Can only access home page. Admin, seconday pages cant be found.Took a while but I figured it out.
I replaced the functions.php with a “fresh copy” I downloaded. That allowed me to get into the admin. I then switched my permalinks to default and that fixed it completely.Forum: Fixing WordPress
In reply to: Can only access home page. Admin, seconday pages cant be found.Anyone else have any ideas? I am so desperate. If anyone can help me figure this out I’ll give $25 through paypal.
I really appreciate any help.Thanks