How to display terms from a custom taxonomy in a hierarchy AND with custom html markup?

Solved it with the following Custom Walker: class CustomWalker extends Walker_Category { function start_el(&$output, $item, $depth=0, $args=array()) { $output .= “\n<li><a href=\”http://website.com/?ls=&location=” . $item->slug . “\”>”.esc_attr($item->name); } function end_el(&$output, $item, $depth=0, $args=array()) { $output .= “</li>\n”; } }

How to get the parent of a non-hierarchical custom post type being edited in Gutenberg

You are already using the correct Gutenberg/JS code, but it’s a limitation in the REST API which exposes the parent field only for hierarchical post types like page. But you can force the field to appear in the REST API responses via register_rest_field() — example for a my_cpt post type: register_rest_field( ‘my_cpt’, ‘parent’, array( ‘schema’ … Read more

Multi-level page hierarchy

menu with non dynamic content if the menu structure is fixed then you can create a fixed menu using the “new” wp menu system (quadrillion weblog postings on that) menu with dynamic content if the menu structure is not fixed you can: a. ask the users to manually maintain the menu after e.g. adding a … Read more

Should I use custom taxonomy or custom post type

So, at the end of the day, your content is about resorts (that is, “destination” = resort? If so: Custom Post Type: destination (semantically, it would be “resort”, but you can use “destination” to meet your client’s needs) Custom Taxonomy(ies): location (country, city, etc.) EDIT: How to parse the terminology: Post: noun Taxonomies: adjectives The … Read more

Why are wordpress posts not hierarchical?

As you’re probably already aware, WordPress is designed with two main content types: Pages and Posts (see also http://en.support.wordpress.com/post-vs-page/) The very design of Posts is to not be hierarchical. And the nature of Pages is to be hierarchical. Posts are to be part of a blog. Blogs are almost always ad-hoc in organization. Thus there … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)