75 reputation
7
bio website
location
age
visits member for 1 years, 6 months
seen 2 days ago

Apr
2
comment Possible to create a permalink to sort with meta_key?
The internets are yours.
Apr
2
comment Possible to create a permalink to sort with meta_key?
Well, can't argue with that answer, 50 points and 1000 internets to you sir.
Apr
2
comment Possible to create a permalink to sort with meta_key?
Oh wait, I see, silly me. Would there be a way to obfuscate the name of the meta_key itself too?
Apr
2
comment Possible to create a permalink to sort with meta_key?
Sorry, I'm not seeing the logic as to how this works. Are you suggesting it as an addendum to what I've already layed out in the question or a standalone solution to the url string query? I'm not seeing a meta_key being set here. Or do you merely append the meta_key itself to the URL string?
Mar
30
comment Possible to create a permalink to sort with meta_key?
Nope, Zipzit, I want to give users a link to click on that'll re-order the posts by a meta_key
Mar
30
comment Possible to create a permalink to sort with meta_key?
I read about using pre_get_posts, but after googling and reading some more I'm not sure as to how I'd roll a function into a query string. Not sure how to use $_GET either :/
Mar
30
comment Possible to create a permalink to sort with meta_key?
Yes, pretty much. Same as ordering ?orderby=title except by the meta_key.
Feb
27
comment Getting posts from multiple users?
Great answer, thanks. The reason I'm use query_posts and not WP_query is because I'm using infinite scroll plugin, that doesn't accept WP_query arrays, so the easiest thing to do is modify the main query with query_posts.
Feb
5
comment Can't print out returned value
Yup, it turns out that it was just the code that was wrong, I'll post an answer with the correct code to display the score for anyone else who happens across this post.
Feb
5
comment Can't print out returned value
I can't seem to print anything, if I set $score = 10; then do echo or print_r after the return $score, nothing gets output.
Dec
10
comment Letting users sort posts
Those answers aren't really applicable to what I'm doing.
Dec
2
comment Modification to wp_list_categories
You're a wizard sir, a thousand internets to you. Just one more question, how to get the image inside the actual a tag itself as well as the li?
Jul
19
comment Rewriting a core function?
Only admin_post_thumbnail_html as per mark's answer, I have no idea which other ones to even try.
Jul
19
comment Rewriting a core function?
Yes, the thumbnail image that's displayed in the admin panel. So far I can't seem to get the filter to work properly so the only way is to over write the core function.
Jul
19
comment Rewriting a core function?
This fails to display the thumbnail for some reason.
Jul
19
comment Rewriting a core function?
And how would I go about using the new function instead of _wp_post_thumbnail_html? Sorry if that's a silly question.
Jul
19
comment Rewriting a core function?
I done that, when I rename it and put it in functions.php it doesn't override the core function.
Jul
19
comment Rewriting a core function?
Resize featured images IN the admin panel, not on the front end of the site, which is easy.
Jun
29
comment Featured image size in ADMIN panel?
I can figure out how to change the html in the box, but not the image itself. add_filter( 'admin_post_thumbnail_html', 'add_featured_image_instruction'); function add_featured_image_instruction( $content ) { return $content .= '<p>This is the featured image</p>'; }
Jun
29
comment Featured image size in ADMIN panel?
Ah ok. But does filtering it allow me to have the size as auto?