WordPress.org

Ready to get started?Download WordPress

Forums

Page-list
[Plugin: [pagelist]] Display from code (4 posts)

  1. PhpcoSqsil
    Member
    Posted 2 years ago #

    Is there a way to call plugin results directly from code?

    e.g: <?php if ( !function_exists('[pagelist_ext strip_tags="0"]');?>

    The goal is to display 5 pages with images and excerpt...

    Is it possible?

    Thanks!

    http://wordpress.org/extend/plugins/page-list/

  2. Jesús Fernando Carrasco Mendoza
    Member
    Posted 2 years ago #

    <?php echo do_shortcode('[pagelist_ext strip_tags="0"]');?>

  3. Jesús Fernando Carrasco Mendoza
    Member
    Posted 2 years ago #

    <?php echo do_shortcode('[pagelist_ext number="5" strip_tags="0"]');?>

  4. webvitaly
    Member
    Plugin Author

    Posted 2 years ago #

    <?php echo do_shortcode('[pagelist_ext number="5" strip_tags="0"]');?>
    This code should work directly in any php file of the theme.

    Pay attention: [pagelist_ext] shows subpages to the current page, so if you want to show list of the same pages - you should specify [pagelist_ext child_of="777"] - where "777" is the id of needed page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags