Unanswered Questions
1,796 questions with no upvoted or accepted answers
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
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
2
answers
661
views
Link to Author archive from Navigation Menus in dashboard?
I'd like to display a grid of authors on my site showing the name of the author and their avatar. The tricky part is, I'd like to be able to control this from the Menus page in the dashboard so I have ...
5
votes
1
answer
660
views
Disable plugins on cron and ajax page
I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
5
votes
1
answer
834
views
Looking for a way to load a function after customizer preview refresh complete
I need to load a callback function after a wp.customize.previewer.refresh(). I need this because I want to update a template position which is displayed with a custom hook in my theme and scroll the ...
4
votes
1
answer
859
views
How can I list only sites that use a particular theme or plugin?
I need to search through dozens of WordPress multisite (network enabled) installs for sites that use a particular plugin.
How can I list only sites that use a particular theme or plugin, preferably ...
4
votes
0
answers
76
views
Using Primary Color in Plugin Block
I'm developing a Gutenberg block, and I want the block to fit in as nicely as possible with the users site. So I'm trying to include as little styling of my own as possible, eg. allowing buttons to ...
4
votes
3
answers
1k
views
Wordpress generating 404 on .mp4 file in theme folder
I am trying to load a full width video on my homepage. My situation is almost exactly like:
Video Background - (php & css) - generating 404 error on page load - Wordpress Theme File Structure ...
3
votes
1
answer
413
views
Get name of current page template in Gutenberg era
In a block theme I'd like to be able to make some edits to the head meta based on the (block-based) page template used. The traditional get_page_template() doesn't seem to work as hoped in this case (...
3
votes
0
answers
279
views
Migrating October CMS to Wordpress
I've done a lot of research on this and cant figure out what option is the best and quickest to take.
We currently have our website on October CMS and are looking to move it over to Wordpress.
Has ...
3
votes
0
answers
1k
views
Add Product categories to Wordpress menu without losing hierarchy
I need to add product categories to Wordpress menu, but when I'm doing this with WP interface it lose the hierarchy
I tried with WP-CLI, but there is no method to specify wich item is the child.
...
3
votes
1
answer
573
views
Replacing the NavWalker dropdown element
I'm creating a website for my school with Material Design for Bootstrap and the NavWalker is giving me some issues, I want to change the element of dropdown i.e. from ul to div. I've tried to edit the ...
3
votes
1
answer
793
views
Add Menu items description via Custom Walker for wp_nav_menu()?
Here is a solution I've found, and it works to append a description after the link.
My question is: Is it also possible to append a description before the link?
function add_description_to_menu($...
3
votes
0
answers
265
views
Change Theme from Plugin based on query_vars
I'm working from about 4 months on developing a Plugin.
This plugin make in a page an entire app, using the powerful of Wordpress.
So, I've decided to create a serires of rewrite rules using command ...
3
votes
1
answer
2k
views
Add div to specific sub-menu
I researched in google, yandex but had no success.
With this code I can set a div to sub-menu but this code add to all sub-menus, I just need to add div to specific sub-menu.
class Megratron_div ...