Rearrange categories for portfolio

  • Posted in : BookCard WP
  • ishanjain
    Participant

    I want to remove the ‘All’ category link from the portfolio page and want to be able to re arrange the categories myself. How can i do that ??

    ishanjain
    Participant

    I managed to rearrange the items as i like but by default it is showing all portfolio items i have in total. I have created a new default category item that is selected and would like the portfolio page to show only those categories items on page load. I have put a JS line to trigger click on that category on page load but unfortunately that is not working. Please guide me as to how can i achieve this.

    ahmetsali
    Keymaster
    dimitr
    Participant

    Hi ishanjain,

    How could you rearrange the categories??

    Mehmet S.
    Keymaster

    Hi, they are generated alphabetically.

    dimitr
    Participant

    Is it possible to add a feature so we could rearrange portfolio manually?

    Mehmet S.
    Keymaster

    Ok, manually:

    – go to Appearance > Editor > page_inner-portfolio.php

    – find:

    $pf_terms = get_categories( 'type=portfolio&taxonomy=department' );
    

    – edit:

    $pf_terms = get_categories( 'type=portfolio&taxonomy=department&orderby=slug' );
    

    – go to your admin (portfolio > departments)

    – change slug of a department to change its order.

    dimitr
    Participant

    ok it works fine.

    now how could the items in the portfolio be rearranged as well?

    ahmetsali
    Keymaster

    just click “Quick Edit” on a portfolio post and change the date. More recent post appear first.

    dimitr
    Participant

    thanks!

    qelsey
    Participant

    Hi,

    I tried this and must have done it wrong because my site no longer shows up, http://www.qelseyzeeper.com/.
    What is the original BookCard: Stylesheet template?

    Thank you.

    ahmetsali
    Keymaster

    @qelsey

    when i check your code, i can’t see the script files of the theme attached to your site. Did you edit theme files directly? you can start over with a fresh copy of the theme.

    css/main.css is the main stylesheet of the theme.

    qelsey
    Participant

    Thank you, I don’t know if I edited them directly – I am building my first site and learning as I go.

    I fixed it by selecting an alternative Bookcard template under “Select theme to edit:” and copy & pasted the code from “page_inner-portfolio.php”, to revert it back to original.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register