438 reputation
922
bio website beneverard.co.uk
location Taunton, United Kingdom
age 26
visits member for 4 years, 2 months
seen 17 hours ago

I'm Ben, co-founder and developer at The Idea Bureau.

You'll find me using the following technologies / apps / frameworks:

  • PHP
    • MVC
    • OOP
    • Systems / Frameworks
      • WordPress
      • CodeIgniter
      • Laravel
  • MySQL
  • PostgreSQL
  • Smarty
  • JavaScript
    • jQuery
  • CSS
  • HTML

Jan
23
comment Removing image dimensions from `the_content`
Hmmm... actually I could just use the CSS max-width trick, that'll supersede the element attributes.
Dec
12
comment Preventing role reading others posts
Thank you @kaiser, I didn't realise I had to map the custom capabilities, after I had done this the user permissions behaved themselves.
Dec
12
comment Preventing role reading others posts
@kaiser Damn... completely forgot to update you, on it now :-)
Dec
4
comment Preventing role reading others posts
Semantics aside, I had used code to replicate the capabilities set in this plugin. However I didn't realise I needed to make the meta capabilities unless I wanted to do something against the default. After the mapping code from here (justintadlock.com/archives/2010/07/10/…) it now works as desired. Thanks Kaiser, want to add that as an answer?
Sep
26
comment What action to use for when a post is saved / published, with a caveat
Ah, good effort. Figures that this would be triggered from a CRON, thanks for this solution. :-)
Jun
5
comment Prevent private post 404
I don't have any plugins installed, this is default functionality. I just want to disable this default functionality so private posts (for those who aren't logged in) shows the single.php template.
May
28
comment Modifying the main editor priority
I'm might just do that... don't want this messing up. Many thanks, very helpful :-)
May
28
comment Modifying the main editor priority
Yeah this was a concern I was trying to sidestep from the beginning, however it still appears to save and output the content... not sure what else it could cause problems with.
May
28
comment Modifying the main editor priority
so this would work perfectly is I were using my own custom meta boxes, however I'm using Advanced Custom Fields, of which doesn't have an option to put the editor box elsewhere. I'm about to post my own answer to this question, your answer helped me get there :-)
May
24
comment Modifying the main editor priority
Thank you @s_ha_dum, I'll take a look at this and get back to you :-)
Jan
16
comment Creating 'posts page' loop based on the page itself
I worded that badly, as my 'News' page is the 'Posts page', the loop it initially populate to display a range of posts, I need to be create a new loop just for the page, thus overwriting the global $post object. So functions like the_title() will work without having to pass an ID.
Jan
16
comment Creating 'posts page' loop based on the page itself
Thanks Mike, I've got the first two parts, I really need it to overwrite the loop. I tried using setup_postdata but that fails too... looks like WP doesn't want me to do this ;-)
Oct
5
comment Pagination on a page
That would work on the designated blog page, but this is just a standard page. WordPress must think I want sub pages page and 2... I don't.
Aug
2
comment Hide tag and category boxes from the post editor
That's exactly what I wanted, thanks @amit :-)
Jul
8
comment Get the prev / next page links only (not title, <a> etc)
Is there a way to just get the link, and not the <a href=""></a> element?
May
11
comment Hijacking the URL for filtering
Worked like a dream, many thanks!
May
10
comment Hijacking the URL for filtering
That's looking more promising, I'll have a good look at that tonight and report back, cheers Jan! :-)
Mar
29
comment Integrating a custom post type into a page hierarchy
I've noticed this also messes with my slug / permalink structure... :S
Mar
28
comment Integrating a custom post type into a page hierarchy
Righto, so I can see how this "fools" WordPress to think a specific page is it's parent, however it's not adding the page parent class to the parent page when I wp_list_pages.
Mar
28
comment Integrating a custom post type into a page hierarchy
I don't see that option in the register_post_type documentation, can you assist?