• Resolved Sam

    (@sam2002)


    Is there any way to expose TablePress to be used via XML-RPC?
    By default, it’s was set as private not public, so we can’t access it remotely.

    [code]
    wp = Client(wp_url, wp_username, wp_password)
    wp.call(posts.GetPostTypes())
    [/code]
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, I’ll have to disappoint you here ?? I’m not aware of a solution to this, sorry. The internal post data is indeed private (as it’s JSON code, which would need post-processing on a client), and I don’t know enough about XML-RPC and its integration into WordPress in order to be able to implement access to TablePress tables in it. Sorry ??

    Regards,
    Tobias

    Thread Starter Sam

    (@sam2002)

    XML-RPC: If you are using any development language you can access to some of the functionality of WordPress remotly.
    One of the few interfaces is to get/add/update posts based on the types.
    As far as I can see you using custom post the internal data is not relevant, (JSON or any other kind)

    MySQL Select:
    select 	post_type from wp_posts group by post_type
    Results:
    post_type
    attachment
    fw_backup
    fw-portfolio
    fw-slider
    fw-testimonials
    nav_menu_item
    page
    post
    product
    revision
    <strong>tablepress_table</strong>
    ufaq
    wpcf7_contact_form

    As you can see it’s there, but it’s set as private not public this mean you can only post using WordPress take few sec to look on:

    Post Types

    add_action( ‘init’, ‘create_post_type’ );
    function create_post_type() {
    register_post_type( ‘acme_product’,
    array(
    ‘labels’ => array(
    ‘name’ => __( ‘Products’ ),
    ‘singular_name’ => __( ‘Product’ )
    ),
    ‘public’ => true,
    ‘has_archive’ => true,
    )
    );
    }

    Thank you for your time

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    making the post type public is not really an option, as it would then show up in many lists or feeds, etc. Also, as saving a TablePress table comprises of more than saving the post_content field, I can not simply make it available through such APIs ??

    Regards,
    Tobias

    Thread Starter Sam

    (@sam2002)

    Ok,
    Thank you, for quick answer,
    I like your implementations you done a great job on this plugin.
    But as I say we need to find solutions to post tables from the external application and add/display them to existing posts.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I would love to have support for this, but as that would basically mean that full user interfaces have to be re-implemented in such external applications, I simply don’t foresee this in the near future. ??
    Maybe the WP JSON REST API can change this in the future, but at the moment, this is just not feasible.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘TablesPress via XML-RPC’ is closed to new replies.