Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter conradh

    (@conradh)

    Thanks for the info. I’ve now upgraded to version 0.4 of the plugin so I have the wp_p2p and wp_p2pmeta tables. If I do an export and import to a fresh blog install, it looks like the post IDs are retained in the new db. Would it be possible to copy over the wp_p2p tables and get the relationships into the new blog install? If not, can you give me any guidance on what the best way to code a relationship import/export tool might be? I haven’t looked at import/export much so I appreciate any advice you’ve got. I’d be happy to share my code for inclusion in the plugin if I get something working. Thanks!

    Thread Starter conradh

    (@conradh)

    Looks like it’s working fine on newly created relationships. Thanks for the help, and the plugin!

    Thread Starter conradh

    (@conradh)

    Looks like it’s working now. Thanks for your attention and the quick fix! Much appreciated.

    One question… Since the relationship is bidirectional, I thought that once I selected a connection on one side, it would be displayed on the other as well but that was not the case. Should it be or did I miss something?

    Thread Starter conradh

    (@conradh)

    To try to verify the issue, I copied the URL from the GET request and appended on the rest of the correct pot type name including the underscore. The response looked like the list of posts of that type I would expect to be returned.

    Thread Starter conradh

    (@conradh)

    Hi Scribu –

    Thanks for your help with this. I realized I accidentally sent you the wrong code for the post types I registered where I am having this issue. The post types I am registering are identical to the code I sent previously, but have an “hs_” prefix in the first parameter, ie:

    register_post_type( 'hs_dataset...'

    When I looked at the ajax response, it appears that the underscore and everything after it is not being sent. Here are the parameters that are being sent in the GET, copied directly from Firebug:

    action p2p_search
    post_type hs
    q test

    Please let me know what you think. Thanks again.

    I would also like to see the wordpress.com Publicize feature released as a .org plugin. It looks great! mdawaffe (Mike Adams of Automattic) posted on the MU forums months ago that he was thinking of cleaning up the code for release but I couldn’t find any mention of it after that. Anyone know the current status?

    Thread Starter conradh

    (@conradh)

    Thanks for taking a look at this!

    function ds_posttypes() {
    	register_post_type( 'data',
    		array(
    			'label' => __('data'),
    			'singular_label' => __('data'),
    			'public' => true,
                            'menu_position' => 5,
    			'supports' => array( 'title', 'editor', 'excerpt' ),
    			'capability_type' => 'post',
    			'rewrite' => array('slug' => 'data'),
    			'query_var' => 'data',
    		)
    	);
            register_post_type( 'dataset',
    		array(
    			'label' => __('datasets'),
    			'singular_label' => __('dataset'),
    			'public' => true,
                            	'menu_position' => 6,
    	                        'hierarchical' => true,
    			'supports' => array( 'title', 'editor', 'excerpt', 'page-attributes' ),
    			'capability_type' => 'post',
    			'rewrite' => array('slug' => 'dataset'),
    			'query_var' => 'dataset',
    		)
    	);
    }
    
    add_action( 'init', 'ds_posttypes' );
Viewing 7 replies - 1 through 7 (of 7 total)