230 reputation
110
bio website flyingtrolleycars.com
location Seattle, WA
age 31
visits member for 1 year, 11 months
seen Oct 10 at 18:13

I'm a developer living in the Seattle area.


Oct
10
comment the_content() behavior on attachment.php versus single.php
Yeah, I might open a larger topic in general: "what's the best way to alter page content after it's left the editor?" I've seen filters, capturing a buffer and altering, JavaScript, etc.
Oct
10
awarded  Scholar
Oct
10
comment the_content() behavior on attachment.php versus single.php
Great clarification. It seems odd to have something in the template hierarchy that behaves differently. YOu can probably guess what I did: copy the single.php to attachment.php and then discovered the behavior. As a follow up: I'm trying to find a good filter to update the <img> tags in all posts. Is there a filter you'd recommend?
Oct
10
accepted the_content() behavior on attachment.php versus single.php
Oct
10
asked the_content() behavior on attachment.php versus single.php
Jun
17
answered How can add custom commands in post-new.php in wordpress
Jun
17
awarded  Yearling
Jun
17
comment Redirect to a page after a few seconds
If your goal is to misdirect a search engine into believing the content is there then JavaScript won't help. Google's engine is sophisticated enough to realize you're changing the URL. If your intention is to have a URL actually redirect to correct content then you'll want to use wp_redirect() as below. There isn't really a great reason to show a page for 5 seconds.
Jun
17
answered Extract an embedded video from the content
Jun
17
comment get_plugins() doesn't work after plugins_loaded
There is no way to "not include the file". The codex explains that the function is, really, only designed for use in the admin side of WordPress - not for themes. If you want to use it in your theme go ahead and include the file as shown.
Jun
17
comment get post author id outside loop
It's also your own question. You can edit it to clarify.
Jun
17
comment Pages displays correctly but returning a 404 error in http header.
It certainly could. Unfortunately the magic that happens under the hood for finding old slugs is difficult to deal with. It also leaves a trail of records in your database. You can forcibly disable it by adding this to your functions.php: remove_action( 'template_redirect', 'wp_old_slug_redirect' );
Jun
16
answered Archive page of filtered posts
Jun
16
answered Is there a better way to check for a new comment?
Jun
16
answered Pages displays correctly but returning a 404 error in http header.
Apr
16
answered Add extra field when admin create user
Apr
16
comment Get Authors Role
If my answer worked please mark it as the solution.
Apr
12
answered Get Authors Role
Apr
12
comment What is wrong with this wp_query?
Just a quick side-comment. Why not just use "get_posts" instead of juggling all that stuff with the $wp_query variable? As far as the main question, my guess would be a mismatch with the time value stored in the DB compared to date('g:i A').
Apr
12
comment Get Authors Role
You question is a little confusing. The first code echoes a user's role. The second code adds a template part based on their role. What, exactly, are you trying to do?