Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #617950

    Hello

    Is there a way to sort the posts that display within categories, it seems the only way your theme shows posts there is by most recent post. It would be nice to show post randomly, by date, ID etc.

    In our situation we have 3,500 articles… with some categories having a lot more content than others. In this section http://www.professorshouse.com/relationships/marriage-advice/ for example I would like to show the 300+ articles randomly… as if I’m not adding new content… the page never changes. This means older content is never shown.

    What can I do to help show more of our content within categories

    Thanks
    David

    #619144

    Hi David!

    Try opening archive.php and look for this block of code:

                                $atts   = array(
                                    'type' => 'grid',
                                    'items' => get_option('posts_per_page'),
                                    'columns' => 3,
                                    'class' => 'avia-builder-el-no-sibling',
                                    'paginate' => 'yes',
                                    'use_main_query_pagination' => 'yes',
                                    'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() )
                                );

    Change it to:

                                $atts   = array(
                                    'type' => 'grid',
                                    'items' => get_option('posts_per_page'),
                                    'columns' => 3,
                                    'class' => 'avia-builder-el-no-sibling',
                                    'paginate' => 'yes',
                                    'orderby' => 'rand',
                                    'use_main_query_pagination' => 'yes',
                                    'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() )
                                );

    Best regards,
    Josue

    #619493

    Hello

    Thanks for sending over the code, but that did not solve the trick unless “random’ happens daily versus each time a user comes to the page. If you look at this category page… http://www.professorshouse.com/family/children/ the topics never change.

    Another issue i have is trying to get rid of the comments and dates for each post. I have tried the suggested code in the forums, but this does not remove it. That said it does remove it from individual posts and on our ‘pages’

    .post-meta-infos, .news-time{
    display: none;
    }
    .slide-meta { display: none; }
    .entry-content .post-meta-infos {
    display: none;
    }
    .post-meta-infos {
    display: none !important;
    }

    #619780

    Hey!

    1. That may be possible but it would require a more advanced modification, unfortunately that’s beyond our support scope. You can request a customisation quote from a third-party provider here.

    2. Try adding !important to the code:

    .slide-meta {
        display: none !important;
    }

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.