Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [library]

The tag has no usage guidance.

-1
votes
0answers
9 views

What libraries are available to connect a Python web app to communicate with WordPress via the REST API?

I have a python web app, and I would like to connect it to WordPress via the REST API. The app will need to communicate in two directions (i.e. the app will both need to send and receive information ...
1
vote
1answer
24 views

How to provide a plugin which requires CMB2 (plugin dependencies)?

Every serious plugin developer probably has to deal with this problem: WordPress is not supporting composer or any dependency management by default. I have written a great plugin which I would like to ...
0
votes
0answers
21 views

Open the media library in Wordpress and make a specific image selected

I have created a Wordpress (meta) function in which you can add another feautured image. The workflow is pretty much the same as the featured image: The media library gets opened, you select 1 image ...
0
votes
1answer
28 views

Unable to declare AOS library in functions

Greeting WP Devs, I am planning to transfer the script libraries in my function.php . In my function.php I registered AOS function mypage() { if ( is_page( 'mypage' ) ) { wp_register_script( '...
0
votes
0answers
13 views

How to manually set an attachment in a post?

I need to manually set an attachment in a estate post with custom php. When it was the wordpress that inserted the image into the media library, this image appears in the post on frontend. However, ...
0
votes
1answer
26 views

Should I manually resolve WP Core File security issues or await a subsequent WP release?

Using the Google Developer Tools, I can see that some of WordPress' JavaScript Libraries contain known security vulnerabilities; some a few months old. With this in mind, should I consider ...
0
votes
0answers
11 views

Add a option to select in Media Library to personalize how items are showed

Is that possible? I found that media-view.js creates a query and has six base type of queries based on items field in select element on the upload.php page. I saw that the scripts come from load-...
0
votes
0answers
80 views

Direct media library upload saving in wrong month date folder in custom theme

I have an issue in my custom theme. Direct media library upload saving in wrong month date folder (2017/03) when current date is 2018/09. But when I upload images through post it goes to the correct ...
1
vote
1answer
14 views

Convert (-) and (escape) signs to (_) when uploading files on wordpress media library automatically

For internal purpose, I'm looking for to convert (-) and (escape) sign to (_) automatically when we upload a file (photo,video,audio) on WordPress media library. Example: If i try to upload this 2 ...
1
vote
0answers
40 views

Use third party Library in wordpress

The GA third party library works with php 5.5 and above, i have this. They say to install this via Composer, since i am new to php i have no idea where is it located and will this work on WordPress? ...
0
votes
1answer
62 views

Setup database structure with books, authors, languages etc. for publishing house [closed]

It was kind of hard to find a good title for my question. What I'm trying to do is setting up a homepage for a publishing company. The website should contain all of the companies books with ...
0
votes
1answer
215 views

Correctly enqueue scripts of type=text/paperscript (PaperJs Library)

I need to use Paper.js (http://paperjs.org/), and specifically one of their examples (http://paperjs.org/examples/smoothing/) on a WordPress website. Usually, scripts are enqued to WP with a PHP ...
0
votes
1answer
915 views

Media Library empty after server migration

I recently moved a client's Wordpress website to a different server. Everything is functioning great, however the media library is empty. When trying to add new files, they get stuck in crunching ...
3
votes
1answer
40 views

Including a 3rd party library in Wordpress which needs to be accessible by wp-config

I'm attempting to use the Defuse encryption library in Wordpress: https://github.com/defuse/php-encryption I'm using this guide as a resource for how to implement it: https://torquemag.io/2016/10/...
0
votes
0answers
558 views

Unable to delete images in Media Library

I have tons of images in my site. Now I'm trying to delete the broken images in the media library but it is not being deleted. Whenever I refresh the page, it is still there. How can I delete those ...
0
votes
1answer
42 views

Building a Article Library within WP?

I've scoured the internet to find some plugin or method on building a article library within WordPress where the users can "check out" posts/articles to use. That must then show up for the rest as "...
7
votes
3answers
5k views

Prevent Wordpress from generating medium_large 768px size of image uploads?

I have followed guidelines to prevent wordpress from generating many different sizes for individual images uploade via the sizes for thumbnail, medium and large to 0 in Settings>Media and have gotten ...
11
votes
1answer
25k views

Update media library files after upload via FTP

I had to upload many files massive and directly to /wp-content/uploads/[year]/[month]/ but those files does not appears in Dashboard>Media>Library Is there a way to update or refresh it to load those ...
1
vote
1answer
4k views

Way to display media library in frontend

Is there is any php code to display the media library section in the frontend? The code should display the full backend media library section to the frontend,like I have the image filter according to ...
0
votes
2answers
38 views

Change author, disable comments, enable trackbacks for all items in library

Change author, disable comments, enable trackbacks for all items in library with 1 click not each one of them separately?
0
votes
1answer
898 views

wordpress images not showing properly

Images are not visible properly in the media library after caching them from my other website. The featured image is also not being set. However the images are showing up on the front end of the ...
0
votes
1answer
30 views

When I insert media from Library into a post, can I then safely delete that media?

My Media Library is getting cluttered and I would like to start deleting old images. Will doing so affect the posts into which I have inserted these images? Does inserting them into the post copy the ...
0
votes
2answers
125 views

Don't show avatars in media library

I am letting users upload avatars which are stored within the uploads folder inside the avatars subfolder which I created. The problem is that avatars are now listed in the media library among other ...
1
vote
1answer
57 views

Adding custom directory and PHP files in wordpress

I'm new to WordPress and I'm using the latest version. I am trying to add this library https://github.com/pinceladasdaweb/tweetlight which is getting the latest tweets from Twitter. Tweets should be ...
0
votes
1answer
234 views

How to make caption field required in media library?

Hi, my question is easy. I don't know how to make the caption's textarea required for user. Is it possible to do this? Thank you.
1
vote
0answers
217 views

How to allow logged out users to upload media?

How do i allow non logged in users access to the media library for uploads? I am making an anonymous blog, i got posting with images to work, but i need the media button above the editor to work so ...
0
votes
1answer
99 views

Front-end CSS Library for plugin [closed]

I'm looking for a CSS library that can style elements I display on the client-side (front-end) of a wordpress website. The CSS library needs to be able to work with most of the wordpress themes, which ...
1
vote
0answers
158 views

Automatically attach image to post if they have the same title

I have 200 images in my WP install. Currently, each image... has its own post (the post title is the same as the image title) is the featured image of that post is inserted into the post However, ...
2
votes
2answers
6k views

How to get an image url from media library

I have got an attachment id, but I need an url. How can I get an url from the attachment object? // When an image is selected, run a callback. frame.on( 'select', function() { // Grab the ...
0
votes
1answer
469 views

Does WordPress support Plupload chunking when uploading asynchronously?

I'm using the Plupload library to upload audio files to my website from the front-end. Here is an example of my Plupload config: var uploader = new plupload.Uploader({ browse_button : 'browse', ...
0
votes
1answer
26 views

How do I display image files as links?

I'm a WP newbie and need some help. I have about 5000 images to upload to my site and need to link each one with a specific entry in a list. The thought of going through 5000 entries (it's a plant ...
1
vote
0answers
534 views

Blank upload.php page

I am wanting to optimize the images that I have previously installed on my Wordpress site. I haven't uploaded any images for a while but now when I try to access the Media Library (Media > Library) ...
0
votes
2answers
695 views

Set Featured Image not opening - Stuck at loading

I am unable to set featured image for posts/pages. The 'set featured image window' opens but never loads and thumbnails. Then I tried to upload the image using Media, it stucks at crunching. But ...
0
votes
1answer
77 views

Categories in media library

I want to add a rather big sound collection to the media library. The problem is that i can't add category to the bunch of files while uploading them... I even can't add it to one uploading file.... ...
0
votes
0answers
157 views

Share common libraries across multiple themes/plugins

What is the best way to integrate a common library (like a framework) across multiple WordPress themes and plugins? Try to answer this from the library developer point of view. Keep in mind that this ...
1
vote
1answer
152 views

media library not showing thumbnails after deleting full image

I am using a bit of code, that deletes the unneccessary full images after uploading and adding different sizes. deleting function in functions.php: add_filter( 'wp_generate_attachment_metadata', '...
0
votes
0answers
260 views

add file name column to media library to sort by

I know that you have answered this but I am a self taught 50 something volunteer and I don't really understand where to place this. If I go to editor (theme being used Asteria lite) and put the code ...
0
votes
1answer
108 views

Crop image sizes directly from Media Library across network (not attached to post or page but sidebar)

I have a MU network setup and I'm pulling in media library images and displaying 4 of those images randomly from across the entire network. I've seen a few people on here using similar codes to do ...
1
vote
0answers
150 views

Custom media uploader not showing library

i am developing a plugin that allows upload an image. Actually the plugin works fine it means, that if you upload an image, the image get set in the database, but, not show the images on the library, ...
0
votes
0answers
78 views

How to add multiple versions of the same featured image for SEO reasons?

I am currently writing a plugin that optimizes category pages in WooCommerce. The idea behind it is that a product can appear in multiple category pages and for every category page it appears in, ...
2
votes
2answers
1k views

Disable edit option in Media library

Hovering my mouse over a file name or a thumbnail brings up the Edit option, I want to know is there any hook to disable all edit links in Media library on Multisite
1
vote
2answers
7k views

How organize uploaded media in WP?

I am new in WordPress and I came from Joomla. I am having some problem to understand how can I (if I can do it...) organize the uploaded media into folders and subfolders using WordPress. If I go in ...
0
votes
2answers
770 views

How do I increase the 255 character limit on the 'description' field for link library links?

My descriptions are being cut off and I need to increase this field to accomodate more text. Thanks.
1
vote
2answers
2k views

How to include external library in wordpress plugin

How can I make an external PHP library available with my plugin. Where the library files need to be placed?
1
vote
1answer
74 views

Plugin allowing users to add articles to a library

We are currently redesigning our site (currently on Joomla) to a new Wordpress platform and I'm concerned I'm going to lose an important feature. I have a membership based site and one of the ...
8
votes
4answers
10k views

Where to put third party PHP library?

I'm developing a couple of open-source plugins and a theme (all part of a "suite") that all use the same third party PHP library. I'm wondering what is the best way to include it in Wordpress. Here ...
2
votes
1answer
61 views

Where to save common libraries?

I have a multiple-site WordPress install. I have decided to centralize as many of my libraries as possible into one spot, for obvious organizational reasons, and in order to reduce bloating. Many of ...
3
votes
2answers
836 views

Image dimensions same as image size

So if I set the large image size in the media library to say 600x600 pixels, and then upload an image which is the same dimensions it won't get set as the 'large' image. There is talk on this ...
3
votes
1answer
1k views

Too much recursion error when chosing image from image library for two different meta boxes in one post

There must be a solution for this. I am using this solution for chooosing images from media library. http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ ...
1
vote
1answer
385 views

What's the best user registration library to integrate WordPress?

I'm looking for a library that can handle user registration (name, address, e-mail etc.) into my existing WordPress website. What options exist today, or will I have to pull my own?