• Resolved mg33

    (@mg33)


    Hello,

    Thanks in advance for any help you can provide. Been using the plugin for a while and noticed this week that a new blog post from one of my sites is not displaying on the other site. The plugin works and I can see posts from January 22nd, 2017 and from October 14, 2016. The code is currently configured to display 3 posts total. I have a newer post from January 27th, 2017 that is live on the source site, and on the site it should display, it’s not pulling over. See https://www.mg33.com if you’re interested – the January 27th post should display to the left of the “2017 Presidential Protests” and there should be three posts across that row.

    Can’t figure out what’s caused it to stop updating, but still pull through older posts. Thanks in advance for any suggestions on fixing this.

    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Could you copy the shortcode you’re using to pull the posts, and paste it here so I can run some tests?

    Thanks!

    Thread Starter mg33

    (@mg33)

    Hi Jeremy,

    The shortcode is:

    [jeherve_post_embed url=”https://www.michaelgallegly.com” wpapi=”true” type=”post” include_title=”true” number=”4″ include_excerpt=”false” order_by=”ID”]

    It’s unchanged from when it was previously working, and I’m embedding it via PHP.

    Thanks – Michael

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    This shortcode appears to be working in my tests:

    https://i.jeremy.hu/embed-test.png

    Could you make sure that you’re running the most recent of the REST API Post Embeds plugin as well as the most recent version of WordPress on the site where you you’re using the shortcode?

    I would also recommend that you try to customize the shortcode just a bit (like displaying 5 posts instead of 4) to make sure the problem isn’t caused by a caching issue with the existing list of posts.

    Let me know how it goes.

    Thread Starter mg33

    (@mg33)

    Thanks for the response Jeremy. If you go and look at https://www.michaelgallegly.com/blog/, there’s a post from 01/25/2017 that is the most recent post. It doesn’t come through with the shortcode. I also previously tried changing the number of posts to something larger than 3; it only displays older posts.

    I had to customize aspects of the PHP file (CSS mostly) to get the posts to display in the format shown on mg33.com. When I update the plugin, I have to revert to the customized PHP file after updating, which previously hadn’t been a problem. I understand the risks in customizing a plugin’s PHP file, but like I said, a few previous updates did not cause any problems when I added the old PHP file back in.

    Thanks – Michael

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    If you go and look at https://www.michaelgallegly.com/blog/, there’s a post from 01/25/2017 that is the most recent post. It doesn’t come through with the shortcode.

    I can see that now, it’s interesting. Do you happen to use a caching plugin on https://www.michaelgallegly.com, that would cache the REST API responses? If so, could you try to flush your site’s cache and see if that helps?

    I had to customize aspects of the PHP file (CSS mostly) to get the posts to display in the format shown on mg33.com

    I would strongly recommend against editing the plugin files directly. If you need to customize the ouput of the shortcode, you can add CSS to your theme stylesheet, or to your custom CSS editor available under Appearance > Edit CSS in your dashboard.

    To make CSS customization even easier, the shortcode includes a wrapper_class parameter to add a custom CSS class to the post list container.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Newer blog posts not displaying with plugin’ is closed to new replies.