Title: Content above [directory] shortcode
Last modified: August 22, 2016

---

# Content above [directory] shortcode

 *  [mcoville](https://wordpress.org/support/users/mcoville/)
 * (@mcoville)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/)
 * I would like to place text and other content above the [directory] shortcode.
   Any content I place on the page with the shortcode appears below the directory
   content.
 * Overall, great plugin and I look forward to seeing where you take it.
 * [https://wordpress.org/plugins/ldd-directory-lite/](https://wordpress.org/plugins/ldd-directory-lite/)

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

 *  [AWCVS](https://wordpress.org/support/users/awcvs/)
 * (@awcvs)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/#post-5234150)
 * mcoville,
 * Have you been able to accomplish this?
 * If so, can you please share how to do so?
 * If not, has anyone else on this forum able to assist?
 * Thank you.
 * Link to directory: [http://americanwheelchairvansociety.org/resources/](http://americanwheelchairvansociety.org/resources/)
 *  Thread Starter [mcoville](https://wordpress.org/support/users/mcoville/)
 * (@mcoville)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/#post-5234152)
 * I have not found a way to do this yet. Sorry.
 *  [Russ Powers](https://wordpress.org/support/users/russwebguy/)
 * (@russwebguy)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/#post-5234154)
 * You might be able to loop page content within the home.php template file. Just
   do it above the section that creates the categories. If that doesn’t work you
   can always create a widget area within the home.php template file, reference 
   it in you theme’s functions.php file and use a widget for the content.
 * Another thing you can try to do is create a page template for your theme and 
   use <?php echo do_shortcode(); ?> below the page loop. ‘
 * I’ll test a couple different solutions and see if I can come up with more solid
   resolution 🙂
 *  [JBWT](https://wordpress.org/support/users/janduy/)
 * (@janduy)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/#post-5234180)
 * Hi, to solve this nasty problem I have found a simple solution.
 * 1) Find _directory.php_ in ‘/includes/shortcodes/’
    2) Adapt this file as follows(**
   bold**):
 * —–
 * function ldl_shortcode_directory() {
    ldl_enqueue(1);
 *  **ob_start(); **
    ldl_get_template_part(‘home’); **return ob_get_clean();** }
   add_shortcode(‘directory’, ‘ldl_shortcode_directory’);
 * —–
 * After this change you’ll see that it’s possible to put a text introduction above
   the nav-bar of the directory!
 * If not, you could put the shortcode into a new page…
 * Best regards,
    Jan Bakker/Duyo Geldrop The Netherlands

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

The topic ‘Content above [directory] shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ldd-directory-lite_d2d2d2.svg)
 * [LDD Directory Lite](https://wordpress.org/plugins/ldd-directory-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ldd-directory-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ldd-directory-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ldd-directory-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ldd-directory-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ldd-directory-lite/reviews/)

## Tags

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

 * 4 replies
 * 4 participants
 * Last reply from: [JBWT](https://wordpress.org/support/users/janduy/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/content-above-directory-shortcode/#post-5234180)
 * Status: not resolved