WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
Displaying images side by side in posts (4 posts)

  1. The Art Monkey
    Member
    Posted 2 years ago #

    Hey Opa,

    Is there a way to use the image display code to get images to sit side by side. Example:

    %%wppa%% %%photo=12%% %%size=210%%%%align=center%%%%wppa%% %%photo=13%% %%size=210%%%%align=center%%

    The above code will put images on top of each other. What I'd like to do is show the images side by side on the same line. Is that possible?

    Thank you!

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    Did you try this:

    %%wppa%% %%photo=12%% %%size=210%% %%align=left%%
    %%wppa%% %%photo=13%% %%size=210%% %%align=right%%

    ?

  3. The Art Monkey
    Member
    Posted 2 years ago #

    I did - all it seemed to do was keep them separated on their own lines and push the alignment left or right. No matter how I put it they would not go on the same line. Also, it I wanted four small thumbnails across would I be able to do that?

    When I set no alignment it seems to default to center alignment.

    The expected functionality I am talking about is if I set no alignment then it left aligns and putting image code next to each other with no line breaks puts them both on the same line. That doesn't seem to be happening.

    Thanks for any help or ideas! Maybe I'm missing something!

  4. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    The cause of this problem is the fact that there are a few places with clear:both in the css. I am aware of the side effects of this, and am trying to ge a way to get rid of them without destroying existing layouts.

    You may try to remove the clear:both's in the source (wppa-functions.php).
    Line 2023 reads:

    if (!$wppa['in_widget']) $result .= 'clear: both; ';

    You may comment it away by placing // in front.

    Make sure that the %%wppa%% script is all on one line to prevent wpautop to add <br> or <p></p in between.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic