WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Post List
[resolved] APL_display "not available" (4 posts)

  1. C0BALT
    Member
    Posted 2 years ago #

    <?php 			    if(function_exists("APL_display")){
        echo "available.\n";
    } else {
        echo "not available.\n";
    }

    This is returning "not available.
    This isn't working, in the loop or out of the loop.
    Do I need to do something else?
    <?php if(function_exists("APL_display")){APL_display("test1");}?>

    [post_list name="test1"]
    The shortcode works just fine.

    I am using WP3.3B3

    http://wordpress.org/extend/plugins/advanced-post-list/

  2. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    I figured out what the issue was. Originally, pretty much everything in the plug-in was redesign to be Object Orientated, and the 'PHP code' displayed a function, not a method to the user. I just forgot to go back and re-edit that part of the front end.

    At this present moment, there isn't a download for this. I'm still working on a few things here and there, but I should be releasing a beta version soon for people to optionally download (until i feel comfortable making it the primary stable version). Just keep an eye out for version 0.2.b1.

  3. jokerbr313
    Member
    Plugin Author

    Posted 2 years ago #

    In the meantime, here is a working sample of the code your looking for. It should work for you as well.

    Using the postExcerptDivided_5 Preset
    <?php if (method_exists($advanced_post_list, "APL_display")){echo $advanced_post_list->APL_display("postExcerptDivided_5");} ?>

  4. mmahdy
    Member
    Posted 2 years ago #

    I tried <?php if (method_exists($advanced_post_list, "APL_display")){echo $advanced_post_list->APL_display("postExcerptDivided_5");} ?> using my preset name and it didn't work. I'm trying it in the header of my blog.

    I'm not a PHP expert, so is there something I should include somewhere in the header before calling this method?

    Please advise

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic