WordPress.org

Ready to get started?Download WordPress

Forums

help in get_pages() admin panel (2 posts)

  1. francistan77
    Member
    Posted 2 years ago #

    I have this code (in My index.php) <?php $pages = get_pages('include=269,397&post_type=page'); ?>

    [Please post code snippets between backticks or use the code button.]

    but I have added a admin menu (functions.php)
    [Code moderated as per the Forum Rules. Please use the pastebin]

    How can I put page ID's on input field in admin panel rather than adding numbers on the get_pages( $arg ) manually.

  2. francistan77
    Member
    Posted 2 years ago #

    here is My code on the functions.php

    [Code moderated as per the Forum Rules. Do not re-post it but use the pastebin]

Topic Closed

This topic has been closed to new replies.

About this Topic