Share common libraries across multiple themes/plugins
Share common libraries across multiple themes/plugins
Share common libraries across multiple themes/plugins
Yes, You can do this functionality by this plugins : wp-media-library-categories media-category-library
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) … Read more
See if either of these plugins helps you do that: Custom Field Template or Mandatory Fields. If not, it might require changes to a theme’s functions.php. Hopefully, you don’t have to change anything in the core WordPress files – that can be quite risky.
Like most page loads in WordPress, WP_Query is intimately involved meaning pre_get_posts is your friend. Proof of concept: function step_2($qry) { $qry->set(‘post__not_in’,array(468,303)); } function step_1() { add_action(‘pre_get_posts’,’step_2′); } add_action(‘load-upload.php’,’step_1′); I’m using the load-upload.php hook to isolate the filter to the “Library” page. If you’ve changed the uploads folder for your avatars you’ve already got some … Read more
I would check the upload_path upload_url_path under your admin options. I suspect they are still referencing the other website. Go to https://yourdomain.com/wp-admin/options.php and scroll down till you get to the the upload_path and upload_url_path.
You have to run SQL query to do this. Put this code into your functions.php once, run your website and then delete it. global $wpdb; $author = 1; $comment_status=”closed”; $ping_status=”open”; $query = sprintf( ‘UPDATE %sposts SET `author` = %d, `comment_status` = %s, `ping_status` = %s’, $wpdb->prefix, $author, $comment_status, $ping_status ); $wpdb->query($query); Or run it directly … Read more
This could be achieved with custom fields or a custom table in the wpdb. Using ACF (Advanced Custom fields) you could assign a checkbox, or some field to each article and you can allow logged in users to check out certain articles and not allow other users to view that article whilst it is “checked … Read more
Unable to delete images in Media Library
I’ve found that in Settings > Media > Files upload > Save files uploaded in this folder: there’s a URL that is not the default (wp-content/uploads). Check this if it can help.