Jatinder Dhiman
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] Video URL Format ThumbnailTheir is nothing to discuss with video provider as its just the youtube url which we are posting.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorI have done this for Post to Pages and a Connection Widget appeared in the page. Please let me know if i want to do the same for post to post.
Thanks in advanceForum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorHi,
I have some knowledge of PHP and I am using the following code in in my functions.php<?php function my_connection_types() { // Make sure the Posts 2 Posts plugin is active. if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'name' => 'posts_to_pages', 'from' => 'Instittues', 'to' => 'Courses' ) ); } add_action( 'wp_loaded', 'my_connection_types' ); ?>an i am getting the error Parse error: syntax error, unexpected ‘}’
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorHi,
One more question. Will the plugin Post to Posts support multisite?Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorThanks for every time replying so fast………
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorI mean according to the given instruction for Basic usage their is heading Registering a connection type I am using that code in my theme’s functions.php but i don’t know where i have to paste that code but as i have tried that code pasting in the functions.php file every time it giving error. That’s what i mean “I am not able to register a connection”
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorI am just putting the same code mentioned on https://github.com/scribu/wp-posts-to-posts/wiki/Basic-usage
<?php
function my_connection_types() {
// Make sure the Posts 2 Posts plugin is active.
if ( !function_exists( ‘p2p_register_connection_type’ ) )
return;p2p_register_connection_type( array(
‘name’ => ‘posts_to_pages’,
‘from’ => ‘post’,
‘to’ => ‘page’
) );
}
add_action( ‘wp_loaded’, ‘my_connection_types’ );
?>DO i have to make a change in this?
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorI am new to WP and need you help in my project Can you give me your email id or phone no. So that i can discuss about my project.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] New connection just for the authorHi,
you really have done an Awesome job by creating this plugin. I was looking to create the relations between Post or Page But your work has proved it.
I also want to use this plugin for my educational site where i want to make relations between courses and Institues But i am unable to Register a connection type in functions.php in my theme I am using a Premium Edublog Theme of WPMUDEV http://premium.wpmudev.org/project/the-edublogs-homepage-theme Kindly Let me know how to do this.
Thanks in Advance.
Jatinder Dhiman
Hi Rimon,
When will you release the next version.