Tag Info

Hot answers tagged

1

You can use this function as you mentioned and you need to learn your file extensions mime type (in example i add svg and xcf upload ability to wordpress) add_filter('upload_mimes', 'ability_to_upload'); function ability_to_upload($mimes = array()) { $mimes['svg'] = 'image/svg+xml'; $mimes['xcf'] = 'image/xcf'; return $mimes; } Here is a link ...


1

WordPress uses the attachment filename to create the attachment post slug. If your file was named something else, there would not be any conflicts. If you have your post permalinks set to /%postname%/ , and you upload an image FIRST, and then create a post SECOND, then WordPress has to make a choice between the two when someone tries to access the ...


1

Let's go and see. If I take arbitrary attachment in my dev install and dump its post object and custom fields I get the following: object WP_Post (24) { public ID -> integer 1687 public post_author -> string (1) "1" public post_date -> string (19) "2013-09-18 14:37:07" public post_date_gmt -> string (19) "2013-09-18 21:37:07" ...



Only top voted, non community-wiki answers of a minimum length are eligible