• Resolved emanuele pdy

    (@emanuele-pdy)


    Hi everyone,

    I’m trying to use Ajax Load More together with another plugin called “Portfolio Mgmt” in order to display my portofolio items but apparently I have an issue in the repeater.

    I’m able to get it working, I can see the portfolio items but I’m not able to display some fields that belong to Portfolio mgmt.

    Here’s my repeater to make it clearer:

    <a href="<?php  the_permalink() ?>" class="progetto <?php if (fmod($index, 4) == 0) echo "last-off"; ?>" style="background-image:url('<?php
    $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 720,405 ), false, '' );
    echo $src[0];
    ?>')">
    	<div>
    		<h2 id="progetto-<?php the_ID(); ?>"><?php the_excerpt(); ?></h3>
    		<p id="client"><?php $client = get_post_meta( $post->ID, '_wap8_client_name', true ); echo $client;?></p>
    	</div>
    </a>

    With this repeater I can load the permalink, the image and the excerpt correctly, but I cannot display ‘_wap8_client_name’

    Thank you in advance to anyone who can help me!

    https://wordpress.org/plugins/ajax-load-more/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    I have had other users mention post_meta data is not accessible within the repeater templates.

    I assume there is no error or anything? Just empty value?

    Thread Starter emanuele pdy

    (@emanuele-pdy)

    Hi there!

    Nope, :/ unfortunately it shouldn’t be about that. Actually the strange thing is that the same structure I use in the repeater works fine in the normal loop…

    Any clue?

    Plugin Author Darren Cooney

    (@dcooney)

    Im thinking you may need to define $post in your repeater like so:
    global $post;

    Let me know if this works

    Thread Starter emanuele pdy

    (@emanuele-pdy)

    It does! Well done mate!
    Thanks a lot, and keep up the good work, the plugin rocks 😉

    Thread Starter emanuele pdy

    (@emanuele-pdy)

    Hi there!

    I’m sorry but I’m still having issue with this 🙁
    Everything was working fine since I tried to make the site availble from the root without moving the wordpress installation (following this procedure: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)

    Apparently Ajax Load More is not able to retrieve the data from the database

    Any clue?

    Thread Starter emanuele pdy

    (@emanuele-pdy)

    UPDATE

    This seems to happen just on Firefox, here’s the error I get from the console:

    “Error: Syntax error, unrecognized expression: Get Bounced!”

    Plugin Author Darren Cooney

    (@dcooney)

    Might have something to do with a cache. Are you using a caching plugin? If so, try clearing that and your browser cache.

    If the rest of the site is working Ajax Load More with have access to your DB as it uses wp core functions.

    Hi

    Great plugin but I’m having the same issue shown above:

    Error: Syntax error, unrecognized expression: Get Bounced!

    This only seems to happen in Firefox and only seems to happen on the live website which is run on a load balanced server so maybe that has something to do with it.

    Any help would be appreciated.

    Plugin Author Darren Cooney

    (@dcooney)

    I’ll reopen this….

    Would you be able to share a URL?
    What other plugins are you running?

    Hi

    I cant send the url publicly as it is a clients website but I could send it to you privately if that helps?

    Other plugins I’m running:
    Akisment
    Contact form 7
    Coshedule
    Simple 301 redirects
    Theme my login
    Wordpress importer
    Wordpress related posts
    Wordpress SEO

    Thanks

    Plugin Author Darren Cooney

    (@dcooney)

    Sure, darren.cooney[at]gmail.

    Thanks. Email sent.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Ajax Laod More with Portfolio Management’ is closed to new replies.