Support Forum

Blog post linking not automatically adding new topics

RM Roman Mica
Roman Mica
Member

The blog post linking plugin isn’t automatically creating posts when the posts are published. It seems inconsistent; it worked once, but two posts were published that weren’t added to the forum.

When the post is created and saved, it shows that it’s linked to a forum post. However, when it publishes, it no longer shows a link. If I were to edit the post and update it – even if I don’t change anything – then the forum post will be created.

I really need this to work automatically, as it was the big selling point for using simple press.

40 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Can you explain a little what you mean by this bit…

When the post is created and saved, it shows that it’s linked to a forum post

How is it shown please?

This kind of a problem with the Blog Linking plugin is virtually unheard of and it is, of course, one of our most popular. The only thing that comes to mind is that there is always the possibility that you have another plugin that performs certain tasks when a new blog post is published and it and ours may be in some sort of contention. Do you have anything installed that may perform such tasks – and that means anything at all that may be related to blog post publishing?

RM Roman Mica
Roman Mica
Member

Sure thing Andy. When a post is saved and set to publish, in the post list under the “forum linked” column it will say “Linked to forum: TFLtruck Posts.” However, after it’s published, that will disappear from the post list (the column is blank) and the forum topic isn’t automatically created.

However, if I edit the post after it’s published and update it, the forum topic will be created and the “forum linked” column will be populated.

I was searching around your forum and I found a similar topic, https://simple-press.com/support-forum/sp5-plugin-topics/blog-linking-plugin-regenerate-posts-comments/ where it seems that there is an issue with NextScripts SNAP plugin. I use that on my site, too, which might be part of the problem. You had responded asking for the list of hooks. I can provide that if you like.

Thanks for your help on this. You mentioned in the other post that for this forum, you use the Social plugin. I’m going to investigate that as a potential option if we can’t get the blog post lining working with SNAP.

YS Yellow Swordfish
Yellow Swordfish
Member

Gosh! Good find. I started to remember as I started to read the thread.

Yes – if you can pass us the code where those hooks are used then we can try a couple of things… See what happens – for example – if we ensure the blog linking process gets done first…

YS Yellow Swordfish
Yellow Swordfish
Member

Well let’s give this a try. Find the code:

add_action( ‘transition_post_status’, ‘nxs_snapLogPublishTo’, 10, 3 );

in that plugin. There are two – I probably don’t need to tell you that you need the one that is NOT commented out 🙂

Try changing that 10 to, say, 15… That will ensure this it gets processed after the blog linking code….

RM Roman Mica
Roman Mica
Member

I made the change. I’ll let you know if it works when we publish our next post.

RM Roman Mica
Roman Mica
Member

It didn’t work. A post published this morning and the forum topic wasn’t linked or created.

RM Roman Mica
Roman Mica
Member

Something else is amiss, too. The forum comments aren’t showing up in the blog post comments properly. Check out the comments in this link and you’ll see what I mean: http://www.tfltruck.com/2016/01/2016-chevy-silverado-5-3l-v8-ike-gauntlet-towing-video/

YS Yellow Swordfish
Yellow Swordfish
Member

Shame… it would have been nice if it were just a priority issue, Just for the record you might want to try the other way around as well – I.e make the number smaller than 10 so it runs first.

What about the other plugin mentioned in that thread? Are you also utilising that by any chance?

And what about anything that might be operating on – and potentually affecting – both blog posts AND comments. Any possible candidates?

RM Roman Mica
Roman Mica
Member

I looked at the plugin list and we’re not using any of the other plugins from that thread. In fact, I don’t see any plugins that affect comments at all. All I can think of is that it’s the theme or theme framework.

I’ll change the number to a lower priority and see if that makes a difference.

I noticed on the other post that you’re using the Social plugin to automatically share posts. Are you still using it, or did you replace it? I noticed that it’s been discontinued. If there’s a better option I’d be OK with replacing SNAP with one that works better with the forum.

YS Yellow Swordfish
Yellow Swordfish
Member

Discontinued? Will need to check into that. But yes we are still using it successfully, This is for blog posts of course.
I am doubtful the theme would be involved. Can you list the plugins you have active? Although i will probably be unfamiliar with many of them!

MP Mr Papa
Mr Papa
Member

more like abandoned…  the author, Alex King, died…  have not heard if anyone else picked it up or not…

YS Yellow Swordfish
Yellow Swordfish
Member

He died? I had no idea. He was a big WP contributor right from the start…