Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Mike/Michael,

    Sorry I know this is really old, but I thought it worth mentioning for other people to find how easy this is to do in a functions.php file if you’re making a custom theme:


    function add_job_editor_caps() {
    $role = get_role( 'editor' );
    $role->add_cap( 'assign_job_listing_terms' );
    $role->add_cap( 'delete_job_listing' );
    $role->add_cap( 'delete_job_listing_terms' );
    $role->add_cap( 'delete_job_listings' );
    $role->add_cap( 'delete_others_job_listings' );
    $role->add_cap( 'delete_private_job_listings' );
    $role->add_cap( 'delete_published_job_listings' );
    $role->add_cap( 'edit_job_listing' );
    $role->add_cap( 'edit_job_listing_terms' );
    $role->add_cap( 'edit_job_listings' );
    $role->add_cap( 'edit_others_job_listings' );
    $role->add_cap( 'edit_private_job_listings' );
    $role->add_cap( 'edit_published_job_listings' );
    $role->add_cap( 'manage_job_listing_terms' );
    $role->add_cap( 'manage_job_listings' );
    $role->add_cap( 'publish_job_listings' );
    $role->add_cap( 'read_job_listing' );
    $role->add_cap( 'read_private_job_listings' );
    }
    add_action( 'admin_init', 'add_job_editor_caps');

    Thread Starter alfiedawes

    (@alfiedawes)

    That was quick! Looks to be working fine, I’ll let you know if anything comes up.

    Thanks for the quick fix, suppose I ought to rate now ??

    Alfie

    Thread Starter alfiedawes

    (@alfiedawes)

    Hi,

    Just updated my other local install to wordpress 4.2 and am now getting the same issue there. Also updated an online website to 4.2 and, although it doesn’t show errors on the template page, no templates are listed.

    I’m pretty sure this is an issue with the plugin on the new wordpress 4.2 release, as now all my sites running that show no templates in the template list.

    Sorry bro, looks like it might be a long evening. Hope I’m wrong ??

    Thanks,

    Alfie

    Thread Starter alfiedawes

    (@alfiedawes)

    Hi,

    I was using one, in the plugin template (plugins/fetch-tweets/template/custom template), but have since deleted it. It didn’t have settings.php or functions.php files.

    Just tried the plugin out on another local install and it’s working fine as normal.

    Just tried uninstalling the plugin, deleting all fetch-tweets options from the database (seemed to have paths to the deleted template in there) and reinstalling and I’m still getting the same issue. Really strange.

    It looks like this is really specific to how I’ve been messing around creating and deleting templates so shouldn’t worry too much about it. I don’t really understand how it hasn’t resolved itself by deleting everything and reinstalling, but if I get some time I’ll look into it and let you know.

Viewing 4 replies - 1 through 4 (of 4 total)