Unanswered Questions
35,154 questions with no upvoted or accepted answers
19
votes
0
answers
2k
views
Extend Media Library
The Media Library in WordPress has "Insert from URL" link to the left. It accepts image URLs. It's not said anywhere but if you paste YouTube URL or <iframe> code then it will insert ...
15
votes
0
answers
2k
views
How to filter or remove default panels in Gutenberg PrePublish Panel
I would like to edit the text or remove and re-create the Publish panel of Gutenberg's PrePublish Panel in the editor sidebar.
I know I can use wp.data.dispatch( 'core/edit-post' ).removeEditorPanel( ...
13
votes
1
answer
917
views
web.config conflict on IIS
folder structure
docroot
|- wordpress
|- web.config
|- wp-content
|- japi
|- index.php
\- web.config
...
...
As you can see there are 2 web.config s....
12
votes
0
answers
301
views
Custom collection in media manager?
I'm working on a plugin that extends the media manager, load JSON based input data to render an own collection of images and may upload them to my wordpress media library.
So far I got my own tab, ...
11
votes
0
answers
306
views
Hook in wp.media to add a new tab
This is an issue coming up while creating a plugin. I want to add a tab to the wp.media.view.MediaFrame.Select modal or if a general approach helps:
In the customizer I want to hook in any modal ...
10
votes
1
answer
829
views
Custom Taxonomy Endpoint Pagination using paginate_links()
The Setup
I have 2 taxonomies and 1 post type:
Post Type: products
Hierarchical Taxonomy: product_cat
Nonhierarchical Taxonomy: product_type
The product-category has a defined endpoint:
...
8
votes
1
answer
1k
views
Pass media upload value to input field
I have created a meta-box that provides a upload function via the default media uploader from WordPress.
This works fine as long as I have one upload option.
But guess what? I want another one.
If I ...
8
votes
1
answer
565
views
static variable loop not working in Wordpress
I have a function in my wordpress theme that deletes the first embedded video in a video post. See code below. This is in the functions.php file.
/* - function that hides first video in post content -...
8
votes
3
answers
4k
views
Use subdomain for certain urls
I have the following rules in my .htaccess file on a WordPress (single installation):
# REWRITE FORUMS DOMAIN TO FOLDER
RewriteCond %{HTTP_HOST} ^forums\.example\.com$
RewriteRule !^forums/? forums%{...
8
votes
2
answers
4k
views
Multisite Domain Mapping with SSL
I've done some searching but couldn't find this issue elsewhere, apologies if this has already been discussed elsewhere.
I've set up a Multisite install; and am trying to set up domain mapping for ...
7
votes
2
answers
551
views
Implementing Gutenberg RichText onSplit / onReplace
I need an unordered list, but with options selected for each list item. To achieve this I've created a custom block called icon-list which is a ul element with InnerBlocks, which allows only my custom ...
7
votes
1
answer
2k
views
Registering menu with 'Automatically add new top-level pages to this menu' selected
Is it possible to register a menu inside of a theme functions file and have 'Automatically add new top-level pages to this menu' pre-selected? I can't find any info about this in the ...
7
votes
0
answers
2k
views
add_rewrite_endpoint() not working for custom post type archives
i'm working on somekind of wiki/encyclopedia system based on wordpress.
there are two custom post types. i'll show my configuration for one of them:
$labels = array(
'name' => _x('Objects', '...
7
votes
2
answers
4k
views
Change label of title field for posts in the backend
I am trying to add some HTML to the title label in the backend of WordPress.
Attempt 1:
I am using the following (simplified) function:
function change_post_titles() {
global $post, $title, $...
6
votes
0
answers
1k
views
How to trigger JS in gutenberg page load
I've loaded a jQuery script with enqueue_block_editor_assets for gutenberg and wp_print_scripts for frontend which is loaded fine.
add_action( 'wp_print_scripts', 'sk_load_script' );
add_action( '...