Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #85468

    Paddy P
    Participant

    How can I arrange a specific order that my portfolio items show up in under the portfolio index? Currently it seems to work by date. I would like to choose an order.

    Thanks.

    #85477

    Cousett
    Member

    There is a great plugin that I have used that might help it is not a supported plugin by X but it is pretty simple so should work. The plugin is called Metronet Reorder Posts – https://wordpress.org/plugins/metronet-reorder-posts/ let me know if this works.

    #85489

    Paddy P
    Participant

    hmmm I can’t get it to work.. I reordered the posts in the plugin, but this did not seem to reoorder the posts in the portfolio :/

    #85493

    Cousett
    Member

    Can you send us your website URL and login credentials so we can take a further look into the issue.
    Thanks

    #85503

    Paddy P
    Participant

    SOLVED:

    I edited portfolio.php

    I added the following term (orderby) into the code:

    $args = array(
    ‘post_type’ => ‘x-portfolio’,
    ‘orderby’ => ‘menu_order’,
    ‘posts_per_page’ => $count,
    ‘paged’ => $paged
    );

    } else {

    $args = array(
    ‘post_type’ => ‘x-portfolio’,
    ‘posts_per_page’ => $count,
    ‘orderby’ => ‘menu_order’,
    ‘paged’ => $paged,
    ‘tax_query’ => array(
    array(

    #85505

    Paddy P
    Participant

    now the portfolio index displays by the order selected in the plugin

    #85510

    Paddy P
    Participant

    and thanks for letting me know about the plugin, it works great 🙂

    #85512

    Paddy P
    Participant
    #85513

    Christopher
    Moderator

    Thank you for suggesting that.
    This will help our other customers too.
    Cheers 🙂

    #350977

    shortcoast
    Participant

    Hi,
    just bumped into this topic and thought I could share two small notes:

    1) the php file is actually “_portfolio.php” rather than “portfolio.php” (that is another, different, file)
    2) right below this line: 'orderby' => 'menu_order', I’ve also added the following line:
    'order' => 'ASC',
    to have an ordering of the portfolio items matching the ones that are showing on the mentioned plugin above.

    Hope this can help 🙂

    #351072

    Darshana
    Moderator

    @shortcoast

    Thank you for your contribution 🙂

    #375309

    Anonymous

    Hello !

    This plugin does not work either, and I’m not too confortable changing the file.
    On what line should I add the code given ?

    Could you please help ??

    Thanks !

    #375313

    Anonymous

    Hello ! Actually I noticed that the plugin you advised is not very well ranked.
    The plugin Intuitive Custom Post Order is actually better ranked with a lot of 5 stars evaluations.
    I’ve just tested it, it works great and intuitively ! Just drag and drop the portfolio items in the order you wish !

    #375388

    Christopher
    Moderator

    Hi there,

    We only recommended the plugin but as we don’t provide support for third party plugins we didn’t guarantee if it was going to work or not.

    We are glad that you found appropriate plugin now.

    Thanks.

    #667504

    meproductions
    Participant

    Hi!

    I’ve edited the _portfolio.php-file in x/framework/views/global without any result. I’ve also tried it with two different plugins for menu sorting, including Intuitive Custom Post Order. It seems like they’re correct in the panel, but doesn’t go through on the page. Might do some difference, but I’m working on a portfolio category /portfolio-item-category/special/
    Can you help me here?

    Cheers!

    // Martin