1,494 reputation
927
bio website tomauger.com
location Toronto, Canada
age
visits member for 2 years, 2 months
seen May 17 at 14:59
stats profile views 466

WordPress developer. Always learning. Hoping to contribute.


May
13
asked What is the link to my default “archive” page?
May
13
answered How to use relative links on my pages?
May
12
accepted Best practice for including plugin output in a template without using shortcode?
May
12
comment When is get_template_part() preferable to simply using the template.php files?
Thanks John. I chose Chris' answer arbitrarily (yours are very similar) because he posted it 1 minute before you. :)
May
12
accepted When is get_template_part() preferable to simply using the template.php files?
May
12
accepted Opinions and recommendations on the best barebones base theme
May
12
asked Complex widget form UI - examples and best practices
May
12
comment Debugging / displaying errors in WP_Widget->form()
See my edit of a)
May
11
revised Debugging / displaying errors in WP_Widget->form()
clarified point a)
May
11
asked Debugging / displaying errors in WP_Widget->form()
May
11
comment Why is my custom sidebar always open on the widgets screen in Admin?
Interesting. But are you then supposed to use numeric IDs for sidebars? I would have thought that could be a conflict risk... my id is a unique identifier that should not collide with any others. Is there a better alternative?
May
11
asked Why is my custom sidebar always open on the widgets screen in Admin?
May
6
asked When is get_template_part() preferable to simply using the template.php files?
May
6
comment TwentyTen: Overloading template.php files vs. get_template_part
Thanks, Rarst. You make me feel better about not following every single convention outlined in TwentyTen. Like Bainternet's response, it sounds like TwentyTen is almost over-designed just to show you what's possible.
May
6
accepted TwentyTen: Overloading template.php files vs. get_template_part
May
6
revised Best practice for including plugin output in a template without using shortcode?
highlighted "best practice" because I'm really looking for idiomatic and best-practice ways of achieving what I'm asking.
May
6
comment Best practice for including plugin output in a template without using shortcode?
Hey kaiser, thanks for these interesting suggestions. Let me see if I understand them all. A) in the template file, just check for the existence of the plugin function B) in the template, create an action hook and in the plugin, listen for that action (that one seems kinda 'backward' doesn't it? - very creative!) C) in the plugin, make it so that every time you publish a post, it adds the attachment list to the end. This one is probably not a very good approach - but really creative! Thanks for the suggestions.
May
6
comment Best practice for including plugin output in a template without using shortcode?
I'm still very interested in everyone's recommendations and best practices. The solution that I believe (so far) to be the most flexible and "WordPress-like" is to create a widget in my plugin, then to use a custom sidebar in the theme (on the custom-post-type.php page) that makes a spot under the_content available for widgets. This seems to be the most flexible and idiomatic way to do it, but I'm really hoping to hear other suggestions to improve my knowledge!
May
6
comment Best practice for including plugin output in a template without using shortcode?
Thanks for the response, Chris. If I am understanding your approach correctly, you're suggesting that I add a filter in my plugin that automatically attaches my attachments output to the end of the_content if the page is my custom post type page? This is brilliant, EXCEPT that it requires a tight coupling between my plugin and that custom post type. If someone else wants to use my plugin with their other custom post type, then they would have to go in and modify my plugin code, no? Or am I missing something?
May
4
asked Best practice for including plugin output in a template without using shortcode?