Unanswered Questions
1,918 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 ...
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 ...
4
votes
1
answer
5k
views
AJAX handler throws 400 (Bad request) - why?
I am trying to apply a "Load more posts" function to a post loop, but I am dealing with a 400 Bad request, when admin-ajax.php is referred to.
The reference I used is this - https://rudrastyh.com/...
4
votes
1
answer
117
views
How do I get the total number of categories in a list of search results?
I want to display the total count of categories in a set of search results.
For example, "10 posts found in 3 categories." (Assuming that each post has only 1 category.)
Right now, my solution is to ...
4
votes
1
answer
2k
views
Custom Loop and Infinite Scroll
I am using customized version of _s theme where I have Product CPT.
In the following files, I need to use Infinite scroll (provided by Jetpack) -
archive-products.php
taxonomy-[tax-name].php
...
4
votes
0
answers
2k
views
Loop that displays PARENT PAGE & CHILD PAGE & outputs GRANDCHILD PAGE title and content
I've never posted here, but I'm tired of slapping code together. That said, I would be most appreciative if someone could help me with this.
I need a page template that:
outputs the PARENT PAGEs,
...
3
votes
1
answer
1k
views
Working Bootstrap Carousel Conversion to WP - Technical Questions
I have coded a working Bootstrap carousel, it needs to be converted to WP. It's a small chunk of the site, but as a Wordpress newbie, am stuck in understanding the technical issue.
So here's what I ...
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
1k
views
Show all parents and children in custom post type in right order
I would like to show all posts from a custom post type on one page with the ordering exactly like in the backend. I get the right ordering with wp_list_pages, but of course without the content.
...
3
votes
2
answers
2k
views
What is better way to use Bootstrap inside admin panel?
I need to use Bootstrap CSS for better UI in wp-admin but if I enqueue the bootstrap.css, it's affecting the admin default UI by changing background colors, etc.
How can I use bootstrap.css inside wp-...
3
votes
0
answers
62
views
Showing random content / pictures from earlier posts in a sticky post?
I have a sticky post on my wordpress blog, in the beginning. I would like to place some random content in it, by simply replacing some HTML in the post content. The random content would come from ...
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 ...
3
votes
1
answer
632
views
Generate a tabbed submenu — from taxonomy term or submenu item — with sample content
I'm looking to generate a tabbed submenu from taxonomy term or submenu item and include sample content (three items per term/submenuu item). The styling I can do, the problem is the html generation.
...