Support » Plugin: jupdf pdf viewer » jupdf and custom post types

  • Hello and thanks for this great plugin!
    I’m having problems trying to make it run with my custom post types.
    Is it possible that the plugin works only with wordpress native posts?

    If it is supposed to work with custom post types, does it need any special $args configuration?

    This is the configuration of my custom post type:

    $labels = array(
            'name' => __('Name'),
            'singular_name' => __('name'),
            'add_new' => 'New Name',
            'add_new_item' => 'New name',
            'edit_item' => 'Edit name',
            'new_item' => 'New name',
            'all_items' => 'All names',
            'view_item' => 'View name',
            'search_items' => 'Search names',
            'not_found' =>  'No names found',
            'not_found_in_trash' => 'No names found in trash',
            'parent_item_colon' => '',
            'menu_name' => 'Names'
          $args = array(
            'labels' => $labels,
            'public' => true,
            'publicly_queryable' => true,
            'show_ui' => true,
            'show_in_menu' => true,
            'query_var' => true,
            'rewrite' => array( 'slug' => __('name') ),
            'capability_type' => 'post',
            'has_archive' => true,
            'hierarchical' => false,
            'menu_position' => 11,
            'supports' => array( 'editor', 'title')
          register_post_type( 'name', $args);

Viewing 1 replies (of 1 total)
  • Plugin Author horiyuki


    Thanks for using jupdf.

    I think jupdf is avalable for custom posts.
    But I do not test it…


Viewing 1 replies (of 1 total)
  • The topic ‘jupdf and custom post types’ is closed to new replies.