Before you ask please READ THIS

change number of related works and titel

edited April 2015 in Fame Posts: 10
Hello,

I'm wondering if there is a possibility to change the number of related works.It would be nice if they could be a bit smaler and mybe even show them in a slider to show up to 12 works or more. Beside I also would like to change the title from 'similar works' to the particular category.

Thank you in advance

Comments

  • AirAir
    Posts: 10,970
    Hello there:-)

    You ask for deeper customization if we sum up your question. I will explain basics :-)

    Title : http://support.apollo13.eu/discussion/3047/similar-works/p1

    Number of items:
    File fame\advance\utilities\post__work__gallery__blog.php line ~495, code:
    
                if($is_work){
                    $r = new WP_Query(
                        array(
                            'post_type' => A13_CUSTOM_POST_TYPE_WORK,
                            'tax_query' => array(
                                array(
                                    'taxonomy' => A13_CPT_WORK_TAXONOMY,
                                    'field' => 'slug',
                                    'terms' => $__search,
                                    'operator' => 'IN'
                                )
                            ),
                            'post__not_in' => array($post->ID),
                            'posts_per_page' => 4,
                            'no_found_rows' => true,
                            'post_status' => 'publish',
                            'ignore_sticky_posts' => true)
                    );
                }
    
    change number in 'posts_per_page' => 4,

    With kind regards.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion