WordPress.org

Ready to get started?Download WordPress

Forums

KC Settings
Page List Drop-Down not functioning (3 posts)

  1. Dinesh Kesarwani
    Member
    Posted 3 years ago #

    Hello,

    I am trying to display option with "pages" list. but plugins giving "categories" list.

  2. Dzikri Aziz
    Member
    Plugin Author

    Posted 3 years ago #

    Could you paste here the code you're using?

    Thanks.

  3. Dinesh Kesarwani
    Member
    Posted 3 years ago #

    ok, we make changes, which works for us. changes are as below:
    find and replace:

    function kc_dropdown_options( $args = array() ) {
    $defaults = array(
    'prefix' => 'kc',
    'mode' => 'pages',
    'section' => '',
    'id' => 'pages'
    );

    to:

    function kc_dropdown_options( $args = array() ) {
    $mode = $args['field']['args']['mode'];
    $defaults = array(
    'prefix' => 'kc',
    'mode' => 'pages',
    'section' => '',
    'id' => 'pages'
    );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic