joostvanhoof
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] pass arguments to get_relatedI found the solution after reading this post.
In wp-content/plugins/posts-to-posts/core/directed-connection-type.php I’ve added:
public function my_get_related( $item, $extra_qv = array(), $output = 'raw' ) { $extra_qv['fields'] = 'ids'; $connected = $this->get_connected( $item, $extra_qv, 'abstract' ); $additional_qv = array( 'p2p:exclude' => _p2p_normalize( $item ), 'posts_per_page' => -1 ); return $this->flip_direction()->get_connected( $connected->items, $additional_qv, $output ); }
This works perfectly. But I’d like to declare this function in functions.php instead of in the p2p core since that could backfire when updating the plugin.
I’ve tried adding
public function ...
to functions.php andadd_action('p2p_init', 'my_get_connected')
but that doesn’t seem to work. Anyone has an idea how to declare this function outside of the core?Thanks!
Well, yes and no. I know what the problem is. I’ve found a post somewhere on the Twitter developer forums where some people stated that tweets with links won’t be displayed if you have a small account (= not a lot of followers).
I use tweet blender to display posts in my sidebar and this plugin does show links in tweets, so if you use that plugin you’re problem will be solved.
I’m planning to test if tweet blender can display tweets on a page (instead of as a widget in the sidebar).
It’s still a weird problem, because at the Twitter forum they say it’s about account size, but if tweet blender can display the tweets then every plugin should be able to…
Forum: Plugins
In reply to: [Contact Form DB] [Plugin: Contact Form 7 to Database Extension] BackslashesIssue is resolved, thanks a lot for the help Michael!
Forum: Plugins
In reply to: [Contact Form DB] [Plugin: Contact Form 7 to Database Extension] BackslashesThanks! I’ll let you know if the issue is resolved.
Forum: Plugins
In reply to: [Contact Form DB] [Plugin: Contact Form 7 to Database Extension] BackslashesPlugin is 2.4.1 and the extension edit is 1.0.