• Hello! This seems like a great plugin (AJAXd WordPress) – just what I’m looking for. It has great documentation for the comments and such, but I simply cannot get the “page” effect going.

    I have a static Page where I need 4 sections to “show/hide” and I just can’t seem to make it work. I’ve gotten as far as having the paginated links show, but when you click on them, they don’t go anywhere. Right now, I’ve tried makeing the 4 extra sections subpages (instead of using <!--nextpage-->), but it’s still a no-go.

    I want the effect that you have on the home page for this plugin – but I seriously can’t find any documentation on how to do that. I also like the idea of giving the paginated links a title – that would be awesome if I can make the link say the first few word of the extra content, rather than “1”,”2″, etc. (If that’s not possible, no biggie.)

    Would you mind giving a brief explanation on how to accomplish this stuff? I’d really appreciate it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Doodlebee

    (@doodlebee)

    Wait – I *believe* it’s because it’s looking for jquery and not recognizing it. I have version 1.2.1, and I’ve changed the name simply to “jquery.js” and included it into my “wp-includes/js/jquery” directory – but it’s still not locating it. I suspect that’s why the effect aren’t being seen.

    Just to clarify, You want this done on a page and not a post?

    If so, by default, aWP ignores pages completely because it tends to conflict with some other plugins; however, you may change this behavior by directly editing the code.

    Open: /modules/inlineposts.php
    Find: is_page() ||
    Replace With: (is_page() && strpos($content, '<!--nextpage-->') == false) ||
    Find: $count == 2 || $aWP[options]['inlinepaginatedposts'] != 'Enabled'
    Replace With: !is_page() && ($count == 2 || $aWP[options]['inlinepaginatedposts'] != 'Enabled')

    I haven’t tested the above code, so let me know if it doesn’t work. I’ll work a cleaner version into the next release (probably in a couple weeks.)

    EDIT:

    Also, custom titles are fairly easy. Right after the <!--nextpage> tag just add <!--title=A Custom title-->.

    Ignore the above post.

    I’m not ready to release a new version yet, but I uploaded a new module which should allow you to paginate pages better than that little hack. You can download the new module. I also had to update the Inline Posts Module which allows it to work smoother. If you use the module, you should download this also.

    There aren’t any detailed instructions, but I’m now using it on the aWP changelog.

    If it really is a jQuery problem, if you are using WP version 2.2+ jQuery is automatically included with your WordPress install, and aWP is built based on it. (If you aren’t, I suggest you upgrade.) If you are using WordPress 2.1, and jQuery isn’t found, it defaults to the sack library.

    As for the effect on my homepage: all that requires is going to aWP Management > Posts > “Select simple posts” and set a split mode and a word or paragraph count. There is a readme, but it is still a work-in progress.

    Thread Starter Doodlebee

    (@doodlebee)

    Ah – thank you for that! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Getting Pages to show/hide’ is closed to new replies.