Shortcode in excerpt
-
Hi
Im using your plugin to generate a custom layout for apartment grids, and i have an issue with the excerpts.
Is it possible to use a shortcode in the excerpt? Because i’ve created some custom meta boxes witch tells the amount of rooms the apratment has, the type of apartment and the price, and im able to export this information onto the post using a plugin called “Get Custom Field Values” which generates a shortcode for the specific meta box.
But when i insert the shortcode in the excerpt it just comes out as the shortcode text and not the actual value im looking for.
Im using a simple html structure for the excerpt so i can style each individual line.
<p class=”lejlighed-type”>Type of apartment</p>
<p class=”varelser”>How many rooms</p>
<p class=”pris”><solid>Price</solid> Price value</p>I’ve also added this line in my functions.php file but it didn’t do anything:
add_filter(‘the_excerpt’, ‘do_shortcode’);The page I need help with: [log in to see the link]
- The topic ‘Shortcode in excerpt’ is closed to new replies.