33,470 reputation
21427
bio website metaflora.net
location San Francisco
age
visits member for 3 years
seen 8 hours ago

I like bicycles and cats.

http://metaflora.net/


Apr
3
answered add_post_meta Adds post meta but the value is blank
Apr
3
answered Custom content before post content
Apr
2
comment Parse Error when trying to access Products -> Categories
oh, I didn't realize on first read that the snippet was from a core file. glad it's working now though!
Apr
2
comment Relative v.s. absolute URLs: which ones should I use for cross-domain portability?
I don't see how it's different from the other question you linked. use the API to output absolute URLs.
Apr
2
comment Parse Error when trying to access Products -> Categories
does it work if you fix the mssing quote here: $this->no_items(ions', $actions, $tag );?
Apr
2
comment Return to option page after running PHP script
Don't think of them as posts, they're just objects that you can add meta data to and organize via taxonomies. In your case, a "post" would be a show, with feed url saved as post meta. Wordpress uses a post type internally for the nav menu system. Plugin examples are Gravity Forms, where each post is a form, with form fields saved as meta data, Advanced custom fields uses a post type to store field groups, etc.. You get the UI and the API to create, update, and query for free, and since it's native WP data, the export tool lets you export your data to other sites.
Apr
2
answered Return to option page after running PHP script
Apr
2
answered Is there an admin hook that will let me read GET variable before it's too late to set the header Location
Apr
2
comment Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
though depending on how sensitive the documents are, I think nesting them in randomized folder names and hashing the filename is sufficiently obscure. if it's really that sensitive, requiring server-level security is not unreasonable.
Apr
2
answered Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
Apr
2
comment excerpt_length not working
do those posts have a custom excerpt entered in the excerpt field?
Apr
1
comment Trying to sort and display categories(not posts) by custom field: 'order'
you're not going to be able to get the correct order from get_categories, the API knows nothing of your custom meta implementation. you'll have to get all the categories and order them yourself in php.
Apr
1
comment Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
well if you want zero additional requirements, it'll have to go in the database.
Apr
1
comment Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
hash the filenames so they're not guessable, and serve them via php readfile.
Apr
1
comment Is there a directory my plugin can write files to that cannot be viewed via the browser/url?
strictly speaking, the answer is no, but if you explain what you're trying to do, perhaps a workable solution can be offered.
Apr
1
comment Search - Ajax - Alter Query Parameters with Pagination
you can append a custom posts per page var to paginate_links the same way you add the s query var, then hook pre_get_posts and look for that var, and set posts_per_page there.
Apr
1
comment If $var is empty, return 404.
where do you try to do this? or more importantly when?
Apr
1
comment Media/attachment urls don't redirect with fake URL structure
an attachment is a post of type attachment, if the associated file was deleted without using the API, then the attachment posts will still exist. I think you need to instead hook an action before the template is loaded and check if the attached file exists, then set a 404 header yourself.
Apr
1
comment Load a form via jquery/ajax that contains strings for translation (WPML)
use the AJAX API
Apr
1
comment Two single.php files?
see this answer