• Hi Everyone,

    I have a really bizzare error. In the admin section I can see the list of custom posts I’ve made, except none of the links in the table are clickable – i.e I cannot edit, trash, view etc UNLESS I right click and choose open in new tab.

    It was working fine and then suddenly I cannot click the links anymore, although the actual address still works. Posts, pages, categories and even my custom taxonomy all work fine, it’s just this custom post type’s index table.

    I’ve tried emptying cache and three browsers, safari, chrome and firefox on mac. I’ve tried disabling all my plugins and deleting all admin-related code from my functions php with no luck. Still can’t click on the damn links to edit a custom post…

    Does any one know what is causing this and how to fix it?

    Just in case here is the register_post_type function i’m using:

    //add Tab post type
    add_action( 'init', 'create_tab_post_type' );
    function create_tab_post_type() {
      $labels = array(
        'name' => _x('Tabs', 'post type general name'),
        'singular_name' => _x('Tab', 'post type singular name'),
        'add_new' => _x('Add New', 'book'),
        'add_new_item' => __('Add New Tab'),
        'edit_item' => __('Edit Tab'),
        'new_item' => __('New Tab'),
        'all_items' => __('All Tabs'),
        'view_item' => __('View Tab'),
        'search_items' => __('Search Tabs'),
        'not_found' =>  __('No tabs found'),
        'not_found_in_trash' => __('No tabs found in Trash'),
        'parent_item_colon' => '',
        'menu_name' => 'Tabs'
    
      );
      $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        'query_var' => true,
        'rewrite' => false,
        'capability_type' => 'post',
        'has_archive' => true,
        'hierarchical' => false,
        'menu_position' => 6,
        'taxonomies' => array('tab_cat'),
    	'supports' => array('title', 'editor', 'revisions', 'page-attributes')
      );
      register_post_type('tab',$args);
    
    add_rewrite_rule('^tab/([^/]*)/([^/]*)/?$' ,'index.php?tab=$matches[2]','top');
    }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can't click links to edit custom post type’ is closed to new replies.