How do i display all categories of a custom post type and have respective page for them?

I made a custom Post type named Blogs which is like this on the function.php

function blog_post() { $  labels = array( 'name'               => _x( 'Blogs', 'post type general name' ), 'singular_name'      => _x( 'Blog', 'post type singular name' ), 'add_new'            => _x( 'Add New Blog', 'blog' ), 'add_new_item'       => __( 'Add New Blogs' ), 'edit_item'          => __( 'Edit Blog' ), 'new_item'           => __( 'New Blog' ), 'all_items'          => __( 'All Blogs' ), 'view_item'          => __( 'View Blog' ), 'search_items'       => __( 'Search Blogs' ), 'not_found'          => __( 'No blog found' ), 'not_found_in_trash' => __( 'No blog found in the Trash' ),  'parent_item_colon'  => '', 'menu_name'          => 'Blogs' ); $  args = array( 'labels'        => $  labels, 'description'   => 'Holds blogs and blog specific data', 'public'        => true, 'menu_position' => 5, 'supports'      => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive'   => true, );  register_post_type( 'blogs', $  args );  } add_action( 'init', 'blog_post' );  function blog_categories() { $  labels = array( 'name'              => _x( 'Blog Categories', 'taxonomy general name' ), 'singular_name'     => _x( 'Blog Category', 'taxonomy singular name' ), 'search_items'      => __( 'Search Blog Categories' ), 'all_items'         => __( 'All Blogs Categories' ), 'parent_item'       => __( 'Parent Blog Category' ), 'parent_item_colon' => __( 'Parent Blog Category:' ), 'edit_item'         => __( 'Edit Blog Category' ),  'update_item'       => __( 'Update Blog Category' ), 'add_new_item'      => __( 'Add New Blog Category' ), 'new_item_name'     => __( 'New Blog Category' ), 'menu_name'         => __( 'Blog Categories' ), );  $  args = array( 'labels' => $  labels, 'hierarchical' => true, ); register_taxonomy( 'blogs', 'blogs', $  args ); } add_action( 'init', 'blog_categories', 0 ); 

So i made the Custom Post type like this

Now i created Post on the Blogs with Categories as Everything, Who, Where now i want to have a page which displays all categories and when i click respective category name i want to have a page which shows pages as per the categories So i wrote a code on blog.php

<?php $  args = array(            'taxonomy' => 'blogs',            'orderby' => 'name',            'order'   => 'ASC'        );  $  categoriess = get_categories($  args);  foreach($  categoriess as $  cat) { ?>   <a href="<?php echo get_category_link( $  cat->term_id ) ?>">        <?php echo $  cat->name; ?>   </a> 

So this code just shows Blog categories but i am super confused which page should i write the code for each categories and stuff please help me?

Best way to display categories tree in mobile apps

I’m developing a little hybrid mobile application, it is an e-commerce app, I’ve designed all from scratch. I am designing it in such a way that the admin at anytime can add categories and subcategories, and so on. There could be cases like this (although they may be a bit rare cases):

Category 1   Category 1.1   Category 1.2   Category 1.3     Category 1.3.1       Category 1.3.1.1     Category 1.3.2     Category 1.3.3 Category 2 Category 3 

I would like to know what is the best way to do this? As a CSS framework I am using Materialize.

How would you advise me, to browsing this section?

Initially, if they were just categories (without children). I would make an accordion, or what in Materialize is called Collapsible. And then when the user clicks on an item, a list with all the products is opened below.

What are the best practices on this type of applications? Should I just show a small list of products and when the user clicks, go to a specific page of that product?

Thunderbird Lightning: How to edit categories?

To edit the categories in the thunderbird lightning calendar could go to Tools -> Options -> Lightning -> Categories, but in the current version (60.3) this doesn’t seem to be possible anymore as Tools -> Options was removed. I also couldn’t find it under the Preferences.

How is it currently possible to edit the calendar categories (delete, change color etc)?

Synchronizing Outlook Calendar Categories with a Sharepoint calendar using email address assigned to SP calendar

I have a SharePoint calendar configured with an incoming email and want to populate events with categories in the SharePoint calendar by sending events from Outlook to SharePoint. I have the same categories in Outlook and in the SharePoint calendar.

When I enter in Outlook an event with a category directly in the SharePoint calendar connected to Outlook, then the category is correctly updated in the calendar on SharePoint.
However, when I create an event with the same category in Outlook using my Outlook Exchange Account and send the event to the SharePoint calendar’s incoming email address, then the event in SharePoint does not contain the category.

Has anyone been able to get this to work or has suggestions for workarounds using the incoming email feature?

We are using Outlook 2013 and Sharepoint 2013.

Two types of product categories on shop page

I’m hoping someone can help me out with what i’m trying to do currently.

I’m using widgets to show the categories on my shop page, and I want to add two types of product categories in it. The first product category would show the paint type, if it is water based or solvent based. And the second category would show only lists of paint by surface, if it is for metal or for wood.

I’ve tried to find answers from google, but I can’t seem to find what i’m looking for. I found that I can exclude some categories on my shop page, but it really won’t do since I need to show two differnt categories and excluding will only help if I have one.

I wonder how can I do this? I’ll attach a photo so hopefully someone can get what i’m trying to say.

enter image description here

Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts

I’m a self-taught programmer with a very little experience in WordPress programming. I’m using a post permalink structure in this way:

https://domain.com/parent-category/child-category/post-title-here/

I want to have the possibility to optionally have URLs with two “parameters”, “routes”, “deepth-levels” like this:

https://domain.com/parent-category/child-category/post-title-here/john-doe/light-blue/

With APACHE’s mod_rewrite I know I can “convert” a URL like: https://domain.com/index.php?name=john-doe&color=light-blue in some like: https://domain.com/john-doe/light-blue/

But, in WordPress, how can I do this without messing all the other URLs and routing process-flow? My goal is read the GET params name and color in the functions.php file so I can make some code with that.

EDIT:

I think that a mod_rewrite rule for “converting” / accepting URLs like this https://domain.com/parent-category/child-category/post-title-here/?name=john&color=light-blue in something like this https://domain.com/parent-category/child-category/post-title-here/john-doe/light-blue/ would do the trick! Using add_rewrite_url()

Thanks for reading.

1000 Copyright free fully Categories HD+ web images for $8

100% Copyright free fully Categories HD+web images If you’re looking for a high quality Hd+ Royalty free professional images, then you found him. I’ve been working as a web developer and Web Designer for 6 years now, which places me in the best position to handle your project,and I will use those images as per requirment ,every required images are present on this file,and I will guarantee it , you can’t use more than those images in your hole life. I look forward to working with you on not just this project but on future projects too; so you can totally rely on whatever finished work you get from me. I will give you this Premium plugin very low cost with Full Customization. If you have any requirements outside the services listed above or further questions, feel free to contact me for support. I’ll get back to you as soon as possible. I look forward to working with you. …………………….Order It Now……………………..

by: DigiQuerySolver
Created: —
Category: Art & Design
Viewed: 202


Should we repeat menu items in the main navigation if they fall into two categories?

I am working on navigation for a retail site. I have a typical account menu (My Account, Sign In, Create Account etc) and I have a main hamburger menu with department pages etc.

The site experience is greatly improved when the customer signs in, so I want to encourage this behavior.

My question is: I have an Account Menu item (My Purchases) in the main hamburger navigation under the title “Popular”, I also have an My Account section in the hamburger menu. Should I repeat My Purchases under Popular and My Account in the hamburger menu to match how the separate Account Menu is structured or should I remove My Purchases from the hamburger My Account section because it already appears in another part of the hamburger menu structure.

The structure and two options are below:

Separate Account Menu:

Child 1: My Purchases
Child 2: x
Child 3: x


Option 1:

Hamburger Menu:

Nav Title: Popular
Child 1: My Purchases
Child 2: x
Child 3: x

Nav Title: My Account
Child 1: My Purchases
Child 2: Sign In
Child 3: Create Account


Option 2:

Hamburger Menu:

Nav Title: Popular
Child 1: My Purchases
Child 2: x
Child 3: x

Nav Title: My Account
Child 1: Sign In
Child 2: Create Account

How to assign people to categories based on some voting rules?

Say in an election there are predefined categories users can be assigned to. Of the people who are assigned to a certain category, other users can vote for them. To compute the results, the following rules have to be adhered to:

  1. Highest voted user in category wins
  2. If 1 user have same 5 vote count for 1 category and 8 vote for 2 category then he/she will be elected for category 2.
  3. If 1 user have same 5 vote count for 1 category and 5 vote for 2 category then the winner selection will be On Hold
  4. If two or more users in a same category has the same votes, then goes on hold

So, for example: the table lists the positions and for each position it gives the name of the user and the votes they received.

enter image description here

For this, the winners should be as follows:

  • Position 1: User 1
  • Position 2: User 3
  • Position 3: User 2 (User 3 loses because of rule 2 and wins in position 2)
  • Position 4: User 5 and User 6 are both kept on hold (rule #4)
  • Position 5: User 4 on hold (rule #3)
  • Position 6: User 4 on hold (rule #3)

I have tried solving this using the Hungarian algorithm to no avail. It works quite well, after some modifications, for this problem. But doesn’t live up to the following case:

enter image description here

In this case, the results are as follows:

  • Position 1: User 1
  • Position 2: User 2
  • Position 3: EMPTY (User 1 and 2 loses due to rule 2)
  • Position 4: EMPTY (User 1 and 2 loses due to rule 2)
  • Position 5: EMPTY (User 1 and 2 loses due to rule 2)

Basically, no user can be assigned to more than one position.


Any help solving this would be extremely helpful.

Thank you