Title: Asides Posts
Last modified: August 19, 2016

---

# Asides Posts

 *  Resolved [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/)
 * Hey guys, thank you for all your help over the last few weeks so that i could
   set up a [great blog.](http://photoneil.net)
 * There is one more thing i would love your help with. I would like to [use asides within my blog](http://codex.wordpress.org/Adding_Asides)
   and have done so far but there is one thing that really gets on my nerves. Everytime
   i post the asides my blog uses a small star to point out that its an asides post.
   What i would like to have and i think would look a hell of a lot better would
   be a small verticle line running down the length of the asides post. You can 
   see examples of this [on Matts page](http://ma.tt) and on [George Pearces page](http://www.gpearce.co.uk/).
   I think this has nothing to do with the theme that im using, instead i think 
   its the choice of code i use for the asides post i[n the index.php file](http://php.pastebin.com/d5aafec8b)
   of my theme. I have tried [matts way](http://ma.tt/2004/05/asides/) and couldnt
   figure it out, ive also tried [georges simple way of doing asides](http://www.gpearce.co.uk/2008/06/asides/)
   and for some reason i get the white screen of death after entering the code.
 * what im wondering and hoping someone could do is just to enter the pice of code
   for me in the right place so that i can have the desired effect that im looking
   for, that simple verticle line. [Ive posted my index code here](http://php.pastebin.com/d5aafec8b),
   all some great wordpress user who knows his php needs to do is add it add the
   bottom and click save, i can implement the code into the theme myself. Please
   guys, it would be a great help!!!
 * Thank guys

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

 *  Thread Starter [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785027)
 * No help guys?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785039)
 * That looks like you’ve already modified the index.php already.
 * Can you post one that is not modified? It’s easier to add asides from scratch
   than it is to try to fix it.
 *  [gspx](https://wordpress.org/support/users/gspx/)
 * (@gspx)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785083)
 * Neil
    Sorry for not getting back to you by email, give this a try: [http://php.pastebin.com/m73f597fc](http://php.pastebin.com/m73f597fc)
 * I found a lot of ifs and elses and stuff, so I compiled them slightly. If you
   still get an error, open up your cpanel, and find the error information that 
   PHP is giving, so it can be fixed.
 * Take care.
 *  Thread Starter [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785085)
 * George i tried your way and its a no, so im posting this for jdembowski [http://php.pastebin.com/m1cf769bd](http://php.pastebin.com/m1cf769bd)
   That is my index without the asides i already have!
 *  [maijs](https://wordpress.org/support/users/maijs/)
 * (@maijs)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785087)
 * Neil,
 * Give [AsideShop](http://wordpress.org/extend/plugins/asideshop/) a try. It won’t
   matter which theme you use or what is your knowledge of PHP.
 * Your aside posts will look just the way you like within.. 10 minutes?
 * You can use inline CSS styling to get desired border on the left:
 * `<div class="post" style="border-left: 1px solid #COLOR;">...</div>`.
 *  Thread Starter [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785089)
 * Already tried that, and couldnt get it to work 🙁 Plus coding it is easier and
   better!!
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785096)
 * Huh. What’s tossing me for a loop (a pun, ha, I kill me) is the beginning of 
   that index.php
 *     ```
       <?php if (have_posts()) : ?>
   
       <?php while (have_posts()) : the_post(); ?>
   
       <?php } elseif(in_category(72)) { ?>
       ```
   
 * You’ve got a while in the middle of your if..elseif. Normally I would just add
   asides like [this one here](http://wordpress.org/support/topic/115785?replies=8)
   but your index.php is beyond my poor PHP skills. Too much for me to sort out.
 * If you can add a conditional for if in_category for your asides, then you should
   be able to add the code easily enough.
 * Good luck.
 *  Thread Starter [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785102)
 * `<?php while (have_posts()) : the_post(); ?>`
    Under this line is where the code
   should be put for the asides..
 * `<?php } elseif(in_category(72)) { ?>`
 * That piece of code is the beginning of an exception, that is for my galleries
   so that i can add them via categories…
 * Basically ignore it and begin adding the code where i said…
 * your help would be great dude.
 *  Thread Starter [neil-guevara](https://wordpress.org/support/users/neil-guevara/)
 * (@neil-guevara)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785134)
 * any help on this one guys?
 *  [gspx](https://wordpress.org/support/users/gspx/)
 * (@gspx)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785146)
 *     ```
       #
                                       <?php if (have_posts()) : ?>
       #
   
       #
                               <?php while (have_posts()) : the_post(); ?>
       #
   
       #
       <?php } elseif(in_category(72)) { ?>
       ```
   
 * you cant end the if for the posts without giving it something to if about.
 * you need <?php if(in_category(44)) { ?> between the bottom 2 lines, otherwise
   PHP will ERR.
    And can you put the template I gave you onto the site, and post
   the errors it provides, that way I can see what’s wrong?

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

The topic ‘Asides Posts’ is closed to new replies.

## Tags

 * [asides](https://wordpress.org/support/topic-tag/asides/)

 * 10 replies
 * 4 participants
 * Last reply from: [gspx](https://wordpress.org/support/users/gspx/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/asides-posts-1/#post-785146)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
