Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getTratamientos() {
- query_posts('post_parent=51');
- if ( have_posts() ) {
- while ( have_posts() ) {
- echo "<div>";
- echo "<h3>".get_the_title()."</h3>";
- echo "<p>".get_the_excerpt()."</p>";
- echo "<a href=\"".get_the_permalink()."\">[Seguir leyendo]</a>";
- echo "</div>";
- }
- }
- }
- add_shortcode('tratamientos','getTratamientos');
Advertisement
Add Comment
Please, Sign In to add comment