Questions tagged [list]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Gutenberg inline style messing up the navigation when I add a list to a page

This is sort of weird. I have a set of pages and the navigation looks the same on all but one page. After trial/error I was able to narrow it down to having a list on my page. As soon as I add a list ...
J.P.'s user avatar
  • 1
1 vote
0 answers
18 views

Keep the expansible tree (list of posts) open in the sidebar

I have created a plugin to diplay a list of posts (cpt) in a tree on the sidebar. It adds an icon [+] when posts have children. However when I click on a post the tree colapses. How can I keep the ...
Artus's user avatar
  • 92
0 votes
0 answers
23 views

How to add images inside an item of a list in Gutenberg

I'm about to move to WordPress (from markdown), and I noticed that the Gutenberg editor won't allow the use of images within list items. It kind of does with the "inline image" feature, but ...
Alvaro's user avatar
  • 121
0 votes
0 answers
16 views

How to save the results of a query as a php file for an autocomplete search bar

I'm looking to cache the results of some queries in order to make autocomplete search bars and lists for forms. I'm using it for a form with <input type="list">. I'd like to save the ...
DJZEEGLER's user avatar
  • 119
1 vote
3 answers
225 views

Insert a group block inside a list item

It seems like the only thing you can put inside a list item is text (including links), inline images, and lists. But I would like to insert a whole group of blocks inside a list item. I was able to do ...
Emmanuel's user avatar
  • 111
0 votes
0 answers
105 views

How to add avatar to authors list?

I have code that shows authors list: <?php wp_list_authors( 'exclude_admin=0&optioncount=1' ); ?> It works fine, with number of posts per author and author page link https://images2.imgbox....
arteaster's user avatar
0 votes
1 answer
192 views

How can i filter wordpress users by custom feild?

I'm displaying users (authors) on a page. how can I add a filter based on user custom feilds? <?php // THE USER QUERY ARGS $args = [ 'role' ...
user3308900's user avatar
0 votes
0 answers
86 views

display the months of a specific category

I have a website made in wordpress, this website has a file called category-intranet.php that is responsible for showing me all the posts of the category "Intranet". what I need is that when ...
Dario B.'s user avatar
  • 155
0 votes
0 answers
22 views

Best way to insert a list of links into a post outside of the_content

I would like to have a list of links to PDFs on some posts that sit outside of the main content. See wireframe: The links need to be editable via the editor / wp admin and be post-specific. It's a ...
Jack's user avatar
  • 101
0 votes
1 answer
87 views

Return all Tags and Categories in Separate List

I am using the snippet below to create a shortcode to get all tags for a search in a separate list including tag count. Eg search for 'foo' and it returns all tags for all posts that match the search '...
RobH's user avatar
  • 7
0 votes
1 answer
153 views

Return All Tags from Search Result in Separate List

I am trying to create a list of tags on top of my search results page that returns all tags and tag count for all tags that are included in the search results. For example, I search for 'Foo' and it ...
RobH's user avatar
  • 7
0 votes
0 answers
63 views

How do you obtain a list of all image file names on a wordpress website for replacement?

Good Day, I hope somebody can assist me please. I have to replace/re-upload all the images on a website, as they were uploaded as massive files. I have to downsize all the images, and want to know if ...
Zenith7 Productions's user avatar
0 votes
1 answer
49 views

how to wordpress When I click on the category link, subcategories appear

What can I do to make subcategories appear when I click on the category link $categories = get_categories(); print_r($categories); foreach($categories as $category){ if(!$category-&...
Mehmet Cemil's user avatar
1 vote
2 answers
2k views

wp_dropdown_categories and custom taxonomy + custom post type

I have created custom post type called "case study"(with slug case-study), with support of custom taxonomy which is called "theme". What i am trying to achieve? Simple dropdown, ...
Nikson's user avatar
  • 15
0 votes
1 answer
41 views

Get children of taxonomies

$terms = get_terms([ 'taxonomy' => array('Movies, Musics, Books, Games'), 'parent' => 0, 'depth'=> 2, 'hide_empty' => false, ]); $sorted_terms = []; ...
Gidromasservis QSC's user avatar
1 vote
1 answer
24 views

Exclude a category from the filed under list only on some templates

this is a follow up question to this post Exclude a category from the filed under list The solution given works for me. However, I'm curious how I can get this to work conditionally? Specifically, ...
joycegrace's user avatar
1 vote
0 answers
219 views

How to link the whole list item in Gutenberg's latest posts block?

I am using a Gutenberg's 'Latest Posts' block on my front page. Featured image display and grid layout are enabled in the block settings. By default, only the post title is linked to the actual post. ...
Bunjip's user avatar
  • 371
0 votes
1 answer
673 views

Hide specific category from wp_list_categories

I have to hide 3 categories from the list, at the moment to view the list I use this function function genres() { $args = array('hide_empty' => true, 'title_li'=> __( '' ), 'show_count'=> 0, '...
Vincenzo Piromalli's user avatar
0 votes
1 answer
41 views

View the complete list of a taxonomy in the navigation menu

I have a taxonomy called "country" and I need to visualize it as a list of categories can someone help me? <li><a href="<?php echo esc_url( home_url() ); ?>/country/...
Vincenzo Piromalli's user avatar
3 votes
1 answer
88 views

Changing a function in function.php to a shortcode - for listing categories of only a certain post type

I'm trying to create a shortcode that can display a list of categories. However, it should: First, limit the results to a specific post type (based on shortcode usage) then check to see if category ...
Tako Bubble's user avatar
0 votes
1 answer
40 views

How to let users create lists of woocommerce products?

I've almost finished my website https://laforetcomestible.org/ It's a french database of plants to create of forest garden (free and collaborative) built with wordpress and woocommerce. I'd like to ...
daam's user avatar
  • 3
0 votes
1 answer
23 views

Why <i> items could not be enclosed within <li> items in WordPress?

I was creating a guide in WordPress with the Classic Editor. In the guide, I was about to create a separate section here, https://www.payuoc.com/home-furnishing-decor/best-mattress/ I referred to ...
Nirmal KUmar's user avatar
2 votes
1 answer
4k views

Get all sub-categories of a parent category

How could I get a list of sub-categories (empty included) of a specific parent category (not within a post) by providing the parent category ID or slug? I need 3 levels depth. Example: picture My ...
Arg Geo's user avatar
  • 429
1 vote
1 answer
910 views

Display the last post by each category?

How I can display the last post by each category? Point is to display the last post on the page for all categories, I need to show them in front as normal <ul><li> list. Any idea? ...
Milosh N.'s user avatar
  • 195
0 votes
0 answers
33 views

I need advice for creating native Wordpress directory site based on native Wordpress functionality only

I created a directory site, but I used normal posts, and builder modules in post content to get the desired directory post layout, however i realized that using builder modules in post content was a ...
Mobil Home's user avatar
2 votes
0 answers
594 views

Gutenberg List Extension Block

I'm trying to extend the default Gutenberg unordered list that renders like this; <ul> <li>Item 1</li> <li>Item 2</li> </ul> To something like this when ...
Wouter's user avatar
  • 21
0 votes
1 answer
184 views

How can I show the author's latest post with title?

The following is my code: (klcom is my theme name) I just show the author by: name and description, I want to show the author's last 3 post with tile after each author, How can I code? Thanks <...
user176974's user avatar
0 votes
1 answer
1k views

How do I add a separator to my list of terms with get_category

I have this... $args = array('child_of' => 3422 ); $categories = get_categories( $args ); foreach($categories as $category) { echo '<a href="' . get_category_link( $category->term_id ) ....
Pete's user avatar
  • 998
0 votes
1 answer
200 views

Convert UL to dropdown list not working

I am running a plugin called Divi Staff to show the staff on the website. I don't like how the specialisms are displayed and wanted to convert them to a dropdown list. I have tried to get this to work ...
CharlieJustUs's user avatar
0 votes
1 answer
469 views

How to get child pages and add unique class only to active page?

I have a parent page with child pages. How to get child pages and add unique class only to active page ? I am making a sidebar with children's menu parent page one level up. I can list all child ...
mat's user avatar
  • 1
0 votes
1 answer
869 views

How to show a list of only categories (exclude subcategories)

I have a list where you show me the categories, but I would like you not to show me the subcategories, only the categories $term_id = get_categories(); if (function_exists('get_wp_term_image')) {...
juan's user avatar
  • 1
2 votes
1 answer
206 views

taxonomy list display custom post count

I use $term->count to display post count but it displays the total count of all type of custom posts attached to taxonomy... I just want to display the count of only a specific custom post type ...
Ramin Mahmudov's user avatar
0 votes
1 answer
57 views

line order number start numbering from second line (SOLVED)

if(is_tax()) { $currentTermType = get_query_var( 'taxonomy' ); $cat_icon = get_field('logo', $queried_object); ...
Ramin Mahmudov's user avatar
1 vote
2 answers
1k views

Remove Order List Row Link in WooCommerce Admin?

I wanna remove the functionality of when you click on a order row in Orders in Admin, you will be sent to the edit page for that order. I know it's added with jQuery in a js-file in the WooCommerce ...
Peter Westerlund's user avatar
0 votes
1 answer
24 views

Category list with postcount

Im total noob with wordpress, and would like to get some help with following problem. I Would like to make list of all categories and postcounts in category, something like this: category1(2), ...
user595846's user avatar
1 vote
1 answer
312 views

List pages by custom field?

For SEO purposes I use my URLs like this: site.com/parent/child/ Currently I have pages like this: site.com/parent/ site.com/page-1/ site.com/page-2/ site.com/page-3/ I want to ...
Markus Hansen's user avatar
0 votes
1 answer
40 views

Posts as filtered list - expandable

I would love to achieve something like on Miranda July's Website for my architecture firm website. Very unsure where to start. Does anyone know a theme that has similar functionality, which I could ...
Eirik's user avatar
  • 115
0 votes
0 answers
30 views

Drodown list return issue

I made a function that doesn't work properly: it correctly returns the slug of the selected tags except the first one in the list. Someone can help me understand why please? The code is below ... ...
paolo70's user avatar
1 vote
1 answer
112 views

A to Z List of Custom Post Type in three columns

I want to display custom post types A to Z Index in three columns, but it just lists the first post under each alphabet in three columns, I think there is some issue with the loop but can not figure ...
Emma B's user avatar
  • 21
0 votes
1 answer
529 views

get taxonomy list in a page in the wordpress

I have this code in a page in the WP for show new taxonomy <?php $terms = get_terms(array( 'hide_empty' => 'false', 'orderby' => 'name', 'order' => 'ASC', 'taxonomy' =&...
omid chahardoli's user avatar
1 vote
1 answer
182 views

To get list of bottom most or deepest or last child for specified parent category

I want to list all the last deepest / bottom most childs of a specified parent category in a page. the structure is Parent A child 1 grand child 1 child 2 grand child 2 great grand child 1 ...
Selva Kumzz's user avatar
0 votes
1 answer
49 views

List all taxonomies with their descriptions

I have this snippet below that lists all my categories in linked hierarchical order and their descriptions. I was hoping someone could update it to allow for a specific custom taxonomy instead? ...
Pete's user avatar
  • 998
0 votes
2 answers
2k views

How to get all wp_posts in wordpress fetched from database

I have downloaded a theme and installed it. Here the theme has custom fields for limited numbers. For ex. author_name, comments but, I want all the wp_posts to be displayed. And prior to that, ...
Aditi Gare's user avatar
1 vote
0 answers
51 views

Show certain posts in a LIST format that members have been granted access to

I need post visibility control, but I don't want just "a class of users" to be able to see a post; I want just 2 or 3 users I specify to see a post. Then later, those same users will go on to view ...
creativeone's user avatar
0 votes
1 answer
368 views

Complex List Field - Gravity Forms

So I am using this Complex List instruction from LINK and it works, but it is changing all my lists. I've tried a few things but am missing something... .gform_wrapper ul.gform_fields....
Parkbum's user avatar
  • 23
0 votes
3 answers
83 views

put a list of one post type in other post type to select from it and display selected item in second post type's single page

I have two post types in my website. one for courses and other for teachers. I want to put a selectable list of teachers post type in courses post type and then show it in course single page and link ...
Farhang's user avatar
0 votes
1 answer
16 views

Add homepage to the list of pages in the Footer Widget

How do you add the homepage to the list of pages appearing in the footer widget? I've spent a few hours looking around for a function adding the list of pages in the footer widget but I can't seem to ...
FilBr's user avatar
  • 21
0 votes
2 answers
375 views

Drop down list code for sidebar

For starters, I'm not a programmer but I'm good at cut and paste. :) I want to create a drop down list that displays each post and I've done that by putting this in my functions.php child theme file ...
rolandogomez's user avatar
1 vote
0 answers
364 views

Change url links on members loops in buddypress

I am new to buddypress, my installations is shown below. WordPress version: 4.9.4 BuddyPress Version: 2.9.3. I urgently need a way to change the url attached to members to link to member profile i....
Samuel Fabuda's user avatar
0 votes
0 answers
1k views

How to add custom field to wp_list_table

I am trying build my own wp_list_table. And i am using this following code: https://github.com/pmbaldha/WP-Custom-List-Table-With-Database-Example/blob/master/custom-list-table-db-example.php It is ...
wpdev's user avatar
  • 539

1
2 3 4 5