Support » Plugin: Ad King Pro » Two adverts side by side in one advert type

  • Resolved footmark


    Hi Ash

    I want to get two ads displaying side by side in a div. I thought if I just allocated them to the same Advert type they would do this, but I see that instead only one ad appears and changes for each page impression.

    Is there a simple way to get both ads to appear side by side – or should I allocate them different Advert types and put each separately into the div with a new PHP code for each?


Viewing 6 replies - 1 through 6 (of 6 total)
  • Tried the following, but the ads just disappear:

    <?php if (function_exists(‘adkingpro_func’)) echo do_shortcode(“[adkingpro banner='{1608}, {1629}’ render=’2′]”) ?>

    Ah OK got it – no curly brackets!

    Right now working but it imposes the ‘sidebar’ advert type – which comes with some css attributes that I don’t want, ad which disrup another class in my own CSS. Can I use the ‘render’ attribute alongside a ‘type=’ parameter to display specified ads of the same type alongside each other?

    I tried
    <?php if (function_exists(‘adkingpro_func’)) echo do_shortcode(“[adkingpro type=’Homepage’ render=’2′]”) ?>
    but it messes up the layout.

    Sorry for all the posts answering my own questions!

    Plugin Author Ash Durham


    Hi Footmark,

    Interesting chat you had with yourself 😉

    Your certainly on the right track. There is a number of ways you can achieve what your after. You named most of them.

    I believe the code you put in your last post is the correct code. I have the working here. When you say it messes up the layout, is that just a CSS issue with your theme?

    Regarding the conflicting CSS with the sidebar class, that doesn’t really have anything to do with the functionality of the plugin, but there are ways around that in specifying the parent of your sidebar class in your CSS (ie “#mycontainer > .sidebar” then use “.adkingpro_container > .sidebar”)

    Let me know how you go.

    Plugin Author Ash Durham



    Can I assume that you have sorted this out via CSS? I’m going to mark this as resolved as it wasn’t really an issue with the plugins functionality.


    Apologies for not feeding back.

    Yes, just to let you know the syntax <?php if (function_exists(‘adkingpro_func’)) echo do_shortcode(“[adkingpro type=’Homepage’ render=’2′]”) ?> works OK, but then need to fiddle with the css to get things to layout as I wished.

    I found it useful to define a css class .adkingprocontainer .adkingprobanner.Homepage to define the layouts.

    Thanks for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Two adverts side by side in one advert type’ is closed to new replies.