Tag Info

New answers tagged

0

There's no such "non-coding newbie"-bulk-thing for the process. You have to do that for each of the image, when you are uploading the image to the site and/or post/page. On the right panel of the media upload pane, change "Link To" to "Custom URL" and put the URL (whatever you like - internal or external) into the next text field. Then whether or not you ...


0

you could enqueue custom css on the admin when your ACF are displayed (from the ACF documentation) function my_acf_admin_enqueue_scripts() { wp_enqueue_style( 'myStylesheet', 'pathToYour/stylsheet.css' ); } add_action('acf/input/admin_enqueue_scripts', 'my_acf_admin_enqueue_scripts'); and in your css you can hide any of these fields targeting ...


0

If you want to give the users some course material to download, you could simply "Add Media" or "Upload ZIP" into the "Course" content section. Also if you want only people who start a "Course" to have the course material then you could place the Course material files in the content of the "Unit" post type that you add to the "Course Curriculum" part. If ...


1

The video player uses the $content_width variable, which you'll find in functions.php within the theme. The $content_width defines the best fit for media on a particular theme, so this should be the best fit for twentyfourteen. You'd set your own value in your own theme.


0

As you mention the media uploader dynamically renders the images "on demand" and there doesn't seem to be an event one can target to add the class. A gross way to do it is to override the wp.media.view.Attachment.Library.className attribute (before the frame is created) to return the extra class if the model id is in the initial selection. It means moving ...


0

if ( defined( 'WP_CLI' ) && WP_CLI ) { class RegenThumbs extends WP_CLI_Command { var $errors = false; var $unique_size_name = 'past_favourites'; var $unique_size = 170; public function __construct() { global $wpdb; if ( !$images = $wpdb->get_results( "SELECT ID FROM ...


0

Just because something is not in the media library it doesn't mean that it is not used in your site or by some other site. The problem that you may run into is deleting a file that it is actually used. On the other hand, just because a file is "located" in the media library doesn't mean it is actually used. Therefor a better question should be "How to ...


1

So I finally found a clue. The media article type stores the caption in post_excerpt, description in post_content. I'm not quite sure which field stores the alt text, but I'm quite happy with just storing the caption in post_excerpt.


0

I found the problem. In settings > media the folder for uploads was actually pointing to a different path. Once I redirected it to wp-content/uploads it all worked.


0

Solved, thanks to this post by Mike Jolley (see 'Passing data to the uploader script').


0

You have to trigger a change event on your field, i.e. hrld_media_input.attr("value", ui.item.value).change();. This will ensure that attachment_fields_to_save will get triggered.


0

You have acesss to FTP/ Wordpress Files ? This is quite a simple: Take a look on the URL of your PDF. It should look like thi: http://example.com/wp-content/uploads/(month you have uploaded this file)/(day)/yourfile.pdf Just follow this path on your Wordpress files and replace the old pdf with the new pdf and make sure the new pdf have the same name of ...


2

I would suggest using WP CLI for that. It's the (in)official WordPress command line tool, like Drush for Drupal or the Symfony2 Console Component. Use the media command to handle your (future) attachments: wp media import <file> [--option=value*] * Take a look at the docs or the CLI help tool to see what options you got. Examples from the docs. ...



Top 50 recent answers are included