Viewing 3 replies - 31 through 33 (of 33 total)
  • Ah, many thanks Scribu. Sorry for the slowness on my part; I hadn’t fully grasped those hook changes.

    `scribu,

    I’ll echo everyone else here and say thanks for an awesome plugin. I have several uses for this sort of thing and I was very pleased to see that someone else had already tackled it.

    I am having an issue with the customization pertaining to this thread. Like the others I only want to be able to edit posts from a single category (for my example: Port Guides) with the Front-End Editor.

    The code I’m using is:

    <code>
    add_filter(‘front_ed_allow_post’, ‘restrict_to_category’, 10, 2);
    function restrict_to_category($allow, $post_id) {
    return $allow && in_category(‘Port Guides’, $post_id);
    }
    </code>

    I’m running WordPress v3.0.1, and I’ve tried both v1.9 and the development version (v2.0-alpha6).

    The plugin works almost perfectly out-of-the box. Posts are instantly editable, RTE loads properly, etc. The only exception is the hover graphic indicating it’s an editable region doesn’t display.

    The main issue I’m having is with this particular customization. After adding the above code to my themes functions.php the plugin does not restrict editing to the Port Guides category. All categories remain editable.

    I’ve ran this through Firebug and there isn’t any errors or any sort.

    Any thoughts on where to begin troubleshooting this one? Thanks in advance for your help.

    I neglected to swap out the new hook. Working now, with the exception of the “Double Click to Edit” popup.

Viewing 3 replies - 31 through 33 (of 33 total)
  • The topic ‘[Plugin: Front-end Editor] Only show Front End editor for posts belonging to a particular category?’ is closed to new replies.