This topic has 4 replies, 2 voices, and was last updated 9 years by sharmstr.

  • Author
  • #68007
     m1co
    Participant

    Any way to sort blog posts by date/popularity etc?

    #68027
     sharmstr
    Moderator

    Not by default. Maybe a plugin?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #68126
     m1co
    Participant

    Could not find any working plugins, only thing is: http://premium.wpmudev.org/blog/add-post-filters/

    But I dont know where to add code in KLEO’s architecture, the first step instructs to add html code to index.php in theme, but nothing happens if I do so…

    Could you pretty please take a look and tell me how to make it work with KLEO?

    #68169
     sharmstr
    Moderator

    Sorry, I have 30 support tickets I’m working on atm.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #68170
     sharmstr
    Moderator

    Maybe this will help. Put this in your child theme functions.php file.

    COPY CODE
    
    /**
     * show included template files
     */
    add_action('all','template_snoop');
    function template_snoop(){
        $args = func_get_args();
        if( !is_admin() and $args[0] ){
            if( $args[0] == 'template_include' ) {
                echo "<!-- Base Template: {$args[1]} -->\n";
            } elseif( strpos($args[0],'get_template_part_') === 0 ) {
                global $last_template_snoop;
                if( $last_template_snoop )
                    echo "\n\n<!-- End Template Part: {$last_template_snoop} -->";
                $tpl = rtrim(join('-',  array_slice($args,1)),'-').'.php';
                echo "\n<!-- Template Part: {$tpl} -->\n\n";
                $last_template_snoop = $tpl;
            }
        }
    }
    

    It will add a comment to the page source for every template file that Kleo uses to build a page. Basically its an easy way to figure out the architecture. I use it all the time.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?