• Resolved neil-guevara

    (@neil-guevara)


    Hey guys, thank you for all your help over the last few weeks so that i could set up a great blog.

    There is one more thing i would love your help with. I would like to use asides within my blog 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 and on George Pearces page. 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 in the index.php file of my theme. I have tried matts way and couldnt figure it out, ive also tried georges simple way of doing 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, 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

    (@neil-guevara)

    No help guys?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    Neil
    Sorry for not getting back to you by email, give this a try:
    https://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

    (@neil-guevara)

    George i tried your way and its a no, so im posting this for jdembowski https://php.pastebin.com/m1cf769bd That is my index without the asides i already have!

    Neil,

    Give 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

    (@neil-guevara)

    Already tried that, and couldnt get it to work ?? Plus coding it is easier and better!!

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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 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

    (@neil-guevara)

    <?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

    (@neil-guevara)

    any help on this one guys?

    #
                                    <?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.