Title: benblei's Replies | WordPress.org

---

# benblei

  [  ](https://wordpress.org/support/users/benblei/)

 *   [Profile](https://wordpress.org/support/users/benblei/)
 *   [Topics Started](https://wordpress.org/support/users/benblei/topics/)
 *   [Replies Created](https://wordpress.org/support/users/benblei/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/benblei/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/benblei/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/benblei/engagements/)
 *   [Favorites](https://wordpress.org/support/users/benblei/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Custom classes for each <li> when listing pages/cats](https://wordpress.org/support/topic/custom-classes-for-each-ltligt-when-listing-pagescats/)
 *  [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/custom-classes-for-each-ltligt-when-listing-pagescats/#post-826886)
 * I am “this guy” and it’s pretty easy to do –
 *     ```
       <?php $active_cat = get_the_category(); $active_cat = $active_cat[0]; ?>
       					<span class="<?php echo($active_cat->category_nicename); ?> meta cat"><a href="http://bleikamp.com/category/<?php echo($active_cat->category_nicename); ?>" title="View all posts in <?php echo($active_cat->category_nicename); ?>"><?php echo($active_cat->category_nicename); ?></a></span>
       ```
   
 * So then your CSS file would look like this:
 *     ```
       span.category1 { background: #009; padding: 2px; }
       span.category2 { background: #090; padding: 2px; }
       ...
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Cannot upload image – PHP error](https://wordpress.org/support/topic/cannot-upload-image-php-error/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/cannot-upload-image-php-error/#post-412274)
 * After CHMOD-777 to the two directories mentioned I have not been able to access/
   wp-admin/ and my index.php page is blank.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Cannot upload image – PHP error](https://wordpress.org/support/topic/cannot-upload-image-php-error/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/cannot-upload-image-php-error/#post-412269)
 * Well now I’m getting something about my database being out of date and giving
   me the option to upgrade…
 * I’ve never had this problem with any previous WordPress installs and I was uploading
   images last night without a problem…
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [What theme is this?](https://wordpress.org/support/topic/what-theme-is-this-1-2/)
 *  [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/what-theme-is-this-1-2/#post-273583)
 * This is Ben from ThePokerBlog.
 * I put the theme together myself, I used a few other blogs as reference for a 
   general layout, but I’m not passing off anyone elses’s work as my own.
 * I am very bad with PHP – which is why references to WordPress are probably missing,
   I just threw the required tags in and hacked the code until it worked.
 * I’m sure there are other themes available that look like this, but it was faster
   for me to do it myself than customize someone elses work. If you’d like the files,
   I can send them to you, but it’s a very crudely assembled theme.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Permalink problem](https://wordpress.org/support/topic/permalink-problem-3/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/permalink-problem-3/#post-243901)
 * I didn’t look hard enough. I apologize for posting a question this dumb 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Feature Stories](https://wordpress.org/support/topic/feature-stories/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/feature-stories/#post-243439)
 * Okay – I tried to do what the codex told me to and I’m having trouble. I’m not
   spectacular with PHP but I know enough that I should be able to make this work.
 * Here is the code I’m trying to use to make a “feature post” – anyone know what
   the problem is? It’s basically coming up wtih a blank page…
    ` <div id="content"
   > <?php $my_query = new WP_Query('category_name=featured&showposts=1'); while(
   $my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->
   ID;?>
 *  <div class="feature-title"></div>
    <div class="feature-story"> <h2>"><?php the_title();?
   ></h2> <span class="meta">from <?php the_time('F jS, Y'); ?>\</span> <?php the_content();?
   > <span class="meta">Comments</span> </div><!-- end of feature -->
 *  <div id="advertise">
    <img src="http://www.thepokerblog.net/advertise-top.gif"
   class="top" /> [Sign up at UltimateBet.com and play against Phil Hellmuth](https://wordpress.org/support/users/benblei/replies/?output_format=md)
   <img src="http://www.thepokerblog.net/advertise-bottom.gif" class="bottom" />
   </div>
 *  <?php endwhile; ?>
    <?php if (have_posts()) : while (have_posts()) : the_post();
   if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>
 *  <?php endwhile; endif; ?>
 *  </div><!-- end of content -->
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Feature Stories](https://wordpress.org/support/topic/feature-stories/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/feature-stories/#post-243167)
 * Thanks a lot 🙂 I had looked at codex and couldn’t find anything, but that link
   helps a lot. And the plugin looks great 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Using WP Without CSS?](https://wordpress.org/support/topic/using-wp-without-css/)
 *  [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/using-wp-without-css/#post-104070)
 * CSS & Web standards are going to revolutionize the web. If you don’t learn CSS,
   you’ll be lost.
    ESPN.com and ABCNews.com have already converted to standards
   compliant pages with CSS as their primary source of styling.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [MySQL Error & Template Problem](https://wordpress.org/support/topic/mysql-error-038-template-problem/)
 *  Thread Starter [benblei](https://wordpress.org/support/users/benblei/)
 * (@benblei)
 * [21 years, 6 months ago](https://wordpress.org/support/topic/mysql-error-038-template-problem/#post-104066)
 * I copied any include that looked like it referred to posts.

Viewing 9 replies - 1 through 9 (of 9 total)