How to chance shorcode position
-
https://develop.planetwize.com/our-focus/african-rift-valley/
I have a shortcode with the following code [news_events /]
<div class="inner-news"> <h2 class="main-title">News & Events</h2> <?php $newscat = get_cat_id('news'); $eventscat = get_cat_id('events'); ?> <?php $shortnne = new WP_Query('cat='. $newscat . ','. $eventscat .'&showposts=2'); while ($shortnne->have_posts()) : $shortnne->the_post(); ?> <div class="mini-post"> <h4><a href="<?php the_permalink() ?>"><?php the_title() ?></a></h4> <p><?php custom_excerpt(10,false) ?><a href="<?php the_permalink() ?>">»</a></p> </div> <?php endwhile; wp_reset_postdata(); ?> <a href="#" class="see-more">See more</a> </div>
I want to show below the image but wherever I put the shorcode the div is created at the beginning, how to I fix that?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to chance shorcode position’ is closed to new replies.