Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #627300

    Hello dear supportteam
    this question is related to this topic:

    Since hours i try to config the view of my categories but what ever i do ….nothing ever happens

    1: Where / how can i define the number of columns i want my posts to be in in a category?
    2: Why are there so many options regarding the blogmeta – but nothing changes of you change the settings?

    I found this in another thread:

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 2);
    function avf_change_which_archive($output)
    {
    	if(is_category())
    	{
    		$output = single_cat_title('',false);
    	}
    
    	return $output;
    }

    What are these numbers supposed to do?
    add_filter(‘avf_which_archive_output’,’avf_change_which_archive’, 10, 2);

    Shouldnt they define post-count (10) and number of columns (2)
    I guess so…
    But if i use this code in my functions.php …nothing changes…it stays 3-column

    Please dont let me go crazy over that ;-)
    Save me!

    Kind regards
    Ricarda

    #628611

    Hey Ricarda,

    1: Where / how can i define the number of columns i want my posts to be in in a category?
    In /archive.php look for this line:

    'columns' => 3,
    

    2: Why are there so many options regarding the blogmeta – but nothing changes of you change the settings?
    Blogmeta settings change the single view only, if you want to change the index view you’d need to use CSS, please post a link to your index/blog/archive and we’ll provide you with the code.

    3. The code you posted is used to show the category title as the title of the archive page, the numbers (10,2) are parameters from the WordPress hooks functionality (10 is priority and 2 number of arguments passed).

    Best regards,
    Josue

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