• Resolved swjack14

    (@swjack14)


    Maybe they didn’t work from the gitgo at the beginning of the month, but I thought they did. While on vacation I got a comment dated June 8 that the like button wasn’t coming up. I am running IssueM to do a magazine format on the site. The buttons seem to show up on articles in the current issue but not on any from past issues, so this may be a problem with the plugin. I have posted a query there also. It hangs, saying “loading” but never gets there.

    Here’s what shows up on the site (https://eaglepeakpress.com/quarterly) of an example of an article for a past issue:

    Like this:
    LIKE Loading…

    The LIKE button looks like you could click on it and make something happen, but nothing does when you do.

    All articles from the current issue have the like button working fine.

    https://www.ads-software.com/plugins/jetpack/

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

    (@jeherve)

    Jetpack Mechanic ??

    The Like button doesn’t seem to be activated on your site at the moment. Did you deactivate it?

    If you still experience issues, could you try the following:

    1) Go the Jetpack menu in your dashboard
    2) Click on “My Jetpack” at the top of the page.
    3) Click on “Disconnect Site from WordPress.com” if your site is currently connected to WordPress.com.
    4) Confirm the disconnection.
    5) Click on the Connect button to connect your site to WordPress.com again.

    Let me know how that goes.

    Thread Starter swjack14

    (@swjack14)

    The Like button is activated. It was working on some articles but after doing the disconnect and reconnect process it now shows on none. Just hangs on the “loading” thing.

    Note: the Like button does work on the front page, so there’s probably a good chance this is a problem with the integration of the IssueM plugin and WordPress. The article structure they superimpose is effectively a custom post, as I understand it, but I am far from an expert on this.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    That’s curious. I don’t see any Like Buttons on your posts at the moment, not even a “Loading…” message or any Like related markup:
    https://i.wpne.ws/gcfk

    Could you point me to a page where you see the Loading message?

    Could you also let me know what your settings are under Settings > Sharing in your dashboard?

    Thanks!

    Thread Starter swjack14

    (@swjack14)

    Okay, here’s a link to an article: https://eaglepeakpress.com/article/dont-be-a-settler/

    And here’s what I see when I look at the page:

    Like this:
    LIKE Loading…

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thank you!

    Do you use a plugin to add this article Custom Post Type, or is that post type added by your theme?

    If so, could you try to add the following code to a functionality plugin like this one, to make sure these articles are synchronized with WordPress.com?

    function swjack14_allow_my_post_types( $allowed_post_types ) {
    	$allowed_post_types[] = 'article';
    	return $allowed_post_types;
    }
    add_filter( 'rest_api_allowed_post_types', 'swjack14_allow_my_post_types' );

    Once you’ve done so, could you try to go to the Jetpack menu in your dashboard, scroll down to the bottom of the page, click on “Debug”, and then click on the Reindex button at the bottom of that page.

    Let me know if it helps.

    Thread Starter swjack14

    (@swjack14)

    It did work! I am mystified as to why my www.ads-software.com/support userid should make this work, however. If you can explain that to me and/or add some other clarification that may help others with this same problem. Then we can consider it resolved.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I am mystified as to why my www.ads-software.com/support userid should make this work, however.

    I used your www.ads-software.com username in the function name to make sure the function name was unique on your site. In WordPress, when adding custom code, it’s strongly recommended to prefix everything, as explained here:
    https://nacin.com/2010/05/11/in-wordpress-prefix-everything/

    add some other clarification that may help others with this same problem

    Likes normally work with all Post Types, but it seems that posts belonging to your article post type weren’t properly synchronized with WordPress.com until now; since we didn’t have a record of those posts on WordPress.com, we couldn’t log a “Like” action.

    That code snippet above adds the article post type to the list of post types synchronized with WordPress.com.

    It’s worth noting that the next major Jetpack release, 4.2, will include several improvements to synchronization, to avoid these kinds of issues. Once 4.2 is out, the code snippet shouldn’t be necessary anymore.

    I hope this clarifies things a bit.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘WordPress likes not working’ is closed to new replies.