July 14, 2014 at 10:30 am #114239
Is there a way to keep Simple Edits active, but override it's precedence?
I have Simple Edits on a couple sites, but I also have a snippet of custom code that handles displaying how many comments a post has when comments are disabled, meaning display no comment count indicator if no comments, or display how many comments were left before comments were closed (something I think is a grievous oversight in basic comments on/off function, but that might just be me 🙂 )
I have Simple Edits active mainly because of the footer mods I've made, but I want my custom function to override the default post info configuration, and it's starting to seem I can't have it both ways.
Is there a way for me to have both, or do I need to move my footer mods into functions and get rid of Simple Edits?
July 14, 2014 at 11:39 am #114252David ChuParticipant
I found this to be an interesting question, and just tested it. I can't speak for your exact circumstances, but some very normal functions code worked just great for me without even using a late priority.
I set mine to work conditionally on the home page, and it does, while leaving the rest of the pages using the Simple Edits one.
Dave Chu · Custom WordPress Developer – likes collaborating with DesignersJuly 14, 2014 at 12:11 pm #114258
I'm using Executive Pro, and Simple Edits was taking over on category archives, blog page template archives, and individual posts. I had to disable Simple Edits to get it to display as such:
* when comments are off and post has zero comments, show nothing
* when comments are off, and post has 1 or more comments, show number of comments
* when comments are on, behave as usual
The only way I could get scenarios 1 & 2 to work was to disable Simple Edits, and let my function do all the work. Which eliminates the footer edits I'd had in there 🙂
Maybe I'll play around with the priority, see if that changes the behavior I'm seeing, otherwise, I'll just add the footer edits into functions. *sigh*
And I never could understand why if you disabled comments on a post, all indications that it ever had comments vanish, unless you go to that post... why not show that a post had 200 comments before they were closed? That would entice some folks to click on the article just to read through the conversations, see why there was so much discussion in the first place.
July 14, 2014 at 6:40 pm #114324
No luck as yet. I've tried adjusting priorities, I've tried changing the name of the filter in case it was clashing with what Simple Edits was using, but so far, no dice.
May just have to add another filter for footer text to put my footer info back, and dump Simple Edits altogether on that site.
- The forum ‘General Discussion’ is closed to new topics and replies.