Unanswered Questions
5,078 questions with no upvoted or accepted answers
10
votes
1
answer
983
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
3
answers
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
667
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 -...
7
votes
0
answers
3k
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
9k
views
why is translation not working on theme?
Background
I am using the theme Rookie from Sportpress.
I created a child theme.
Translation files are existing, especially german in my case.
Wordpress is set to german language.
The Problem
...
6
votes
0
answers
521
views
Gutenberg Blocks doesn't render correctly when using do_blocks
I'm trying to render a post_content with blocks using the do_blocks function, that takes a gutenberg content, parses every block, and returns an HTML string.
The problem is that some blocks aren't ...
5
votes
3
answers
2k
views
Find out what is using PHP sessions in WordPress
Is there a way to find out what is using PHP sessions or spawning PHP processes?
My Wordpress site gets heavy traffic (3.5 million hits per month). We discovered recently that we had permissions set ...
5
votes
1
answer
2k
views
WSOD but WP_DEBUG not giving any errors
I am running Wordpress on a WAMP stack and I'm trying to debug a WSOD error, which I think is a PHP error, as I have tried disabling all my plugins and themes and they don't seem to be the problem.
I'...
5
votes
3
answers
1k
views
Making plugin unique to not conflict with plugins with the same name
I have plugin that has the same name as other plugin uploaded to wordpress.org
How can i make it unique so it doesn't share "View Detais" link and auto-update with other plugin uploaded to wordpress....
5
votes
1
answer
597
views
Cropping, Re-sizing and Saving images from one folder to another folder in wordpress
I'm adding an upgrade for the WordPress plugin which I have developed ages ago. This plugin is just a product catalog, so just show products and their images. Products can have more than one images.
...
5
votes
2
answers
1k
views
Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
For a long time I served my blog from http://www.murrayc.com/blog/, with the wordpress installation in /home/murrayc/murrayc.com/blog/. Now I've moved it to http://www.murrayc.com/, without moving the ...
4
votes
1
answer
2k
views
WordPress “Link has expired” error on updating posts
I'm maintaining a WordPress site on GoDaddy for a client and they started to get the "this link has expired error" when they saved a post. It does not happen when I upload a file. However, I am ...
4
votes
1
answer
2k
views
Creating a post with the REST API, curl and oauth returning 401 error
I'm trying to create a WordPress post using the REST API, OAuth, and cURL. However, I'm running into some trouble.
I'm able to create a blank post (no title, slug, etc) using the following code:
$...
4
votes
0
answers
230
views
Can rewrites fallback if 404? Rewrite conflict issue
I have pages and product categories on my site:
Pages:
--About
--Contact
Products:
--Category 1
----Subcategory 1
--Category 2
Ideally I want mysite.com/category-1/subcategory-1 to show the product ...
4
votes
2
answers
657
views
load/require specific php files for specific pages/templates/post types
I have a plugin with multiple php files. I want to load some of them only when specific template files are loaded. I don't want to load everything.
Currently, I'm doing it with
add_action( 'wp', '...