WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] Call to undefined function (10 posts)

  1. dashaluna
    Member
    Posted 2 years ago #

    After installing and activating the plugin I can the warning:
    Call to undefined function previous_post_link_plus() which I get when I use simply previous_post_link_plus();.

    Am I missing something? :S
    Thanks,
    Dasha

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 2 years ago #

    Are you sure the plugin is activated? The plugin consists of only one PHP file, and the previous_post_link_plus function is defined at line 204. I have heard of people getting an undefined function notice after they uninstall the plugin, but never while it is activated.

  3. dashaluna
    Member
    Posted 2 years ago #

    My apologies... I ended up with the page-link-plus plugin instead of the post-link-plus one :S Very confusing, not sure how that happened!

    Dasha

  4. brian7997
    Member
    Posted 2 years ago #

    I did the same thing! Need to change the names! Too similar LOL

  5. ambrosite
    Member
    Plugin Author

    Posted 2 years ago #

    I know the plugin names are similar, but I am using the same terms ("post" and "page") that WordPress uses. I think if I were to create my own terminology to refer to posts and pages, it would make things even more confusing. The next time I update the plugins, I'll put a big bold notice at the top of the documentation alerting people to the difference, and to make sure they are using the right one.

  6. dashaluna
    Member
    Posted 2 years ago #

    ambrosite, yes it's better to stick to WP terminology!
    Big bold notice sounds good!

    Thanks for the great plugins :)

    Dasha

  7. phejdc
    Member
    Posted 2 years ago #

    I'm getting "Fatal error: Call to undefined function pevious_post_link_plus()" after installing and activating Ambrosite Next/Previous Post Link Plus

    This is the code I'm using on my single.php

    <div id="nav-below" class="navigation">
    	<div class="nav-previous left"><?php pevious_post_link_plus( array('order_by' => 'custom', 'meta_key' => 'item_image2') ); ?></div>
        <div class="nav-next right"><?php next_post_link_plus( array('order_by' => 'custom', 'meta_key' => 'item_image2') ); ?></div>
    </div><!-- #nav-below -->
  8. ambrosite
    Member
    Plugin Author

    Posted 2 years ago #

    You have the function name spelled wrong. It's "previous", not "pevious".

  9. bashquandry
    Member
    Posted 1 year ago #

    I am getting "Fatal error: Call to undefined function pevious_post_link_plus()"

    I am using the correct function for posts and the plugin is active.

  10. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    You have to spell the function name correctly -- "previous", not "pevious"!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic