WordPress.org

Ready to get started?Download WordPress

Forums

Woocommerce shop base page display order (4 posts)

  1. maanse
    Member
    Posted 7 months ago #

    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.

  2. Dave Naylor
    Member
    Posted 7 months ago #

    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!

  3. maanse
    Member
    Posted 7 months ago #

    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.

  4. Dave Naylor
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Topic

Tags

No tags yet.