• Hi Guys,

    Just after a little help with the Shop Base page. Everything seems to work almost as i want it, the page displays all my categories fine. Except, it displays them in the order they were created rather than alphabetical or user defined.

    Is there an easy way to change this order?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you’re putting code in templates:

    array(
          'number' => 'null',
          'orderby' => 'name',
          'order' => 'ASC',
          'columns' => '4',
          'hide_empty' => '1',
          'parent' => '',
          'ids' => ''
     )

    If you’re using the shortcodes:

    [product_categories number="12" parent="0" ...etc]

    I couldn’t get orderby=”name” to work when I just tested, but orderby=”date” worked like I thought “name” would. Such fun!

    Thread Starter maanse

    (@maanse)

    If you’re putting code in templates:

    array(
    ‘number’ => ‘null’,
    ‘orderby’ => ‘name’,
    ‘order’ => ‘ASC’,
    ‘columns’ => ‘4’,
    ‘hide_empty’ => ‘1’,
    ‘parent’ => ”,
    ‘ids’ => ”
    )
    If you’re using the shortcodes:

    [product_categories number=”12″ parent=”0″ …etc]

    I couldn’t get orderby=”name” to work when I just tested, but orderby=”date” worked like I thought “name” would. Such fun!

    Actually i haven’t put anything in the page. All i have done is in the woocommerce settings set the shop base page to this particular page. When i edit the page it is completely blank, so i assume there is some kind of default template somewhere.

    Most likely. Look at which template that particular page is using and edit that one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce shop base page display order’ is closed to new replies.