• Resolved alphachris

    (@alphachris)


    <?php the_a_z_widget( null, array( ‘post’ => get_page( $id ) ) ); ?>

    does not work

    <?php the_a_z_listing( array( ‘post_type’ => ‘bgmp’) );
    ?>

    works

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    the ‘post’ argument should be the id directly, and not a WP_Post object. You should be able to use:

    <?php the_a_z_widget( null, array( 'post' => $id ) ); ?>

    I will make a note to add support in the next release for using a WP_Post object instead of the post-id, but currently you’ll need to change your code similarly to the example above.

    Thread Starter alphachris

    (@alphachris)

    thx

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘php the_a_z_widget — call to undefined function’ is closed to new replies.