Forum Replies Created

Viewing 5 posts - 211 through 215 (of 215 total)
  • Author
    Posts
  • in reply to: Infinite Scroll #779919

    Unfortunately Not yet, see the page http://www.mfm.it/demo/category/deluxe/

    in reply to: Infinite Scroll #779206

    Thanks for your reply, I tried the only one free at the momentbut it doesn’t work :-(
    as you can see at http://www.mfm.it/demo/category/beauty/
    there is the basic enfold pagination still
    did i miss any configuration step?

    Navigation Selector nav.navigation
    Next Selector nav.navigation a.next
    Item Selector article.post
    Content Selector #main

    in reply to: Hide specific categories from meta #778984

    Sorry again but it doesn’t work as you can see at http://www.mfm.it/demo/
    I added the code:

    add_filter(‘get_the_terms’, ‘hide_categories_terms’, 10, 3);
    function hide_categories_terms($terms, $post_id, $taxonomy){

    // define which category IDs you want to hide
    $excludeIDs = array(6960, 7097);

    // get all the terms
    $exclude = array();
    foreach ($excludeIDs as $id) {
    $exclude[] = get_term_by(‘id’, $id, ‘category’);
    }

    // filter the categories
    if (!is_admin()) {
    foreach($terms as $key => $term){
    if($term->taxonomy == “category”){
    foreach ($exclude as $exKey => $exTerm) {
    if($term->term_id == $exTerm->term_id) unset($terms[$key]);
    }
    }
    }
    }

    return $terms;
    }

    where 6960 and 7097 are the IDs of categories TOP & DISCOVER but as you can see those taxonomies are still visible.

    Please help me. Thanks Gianluca

    in reply to: Hide specific categories from meta #776168

    Hi, I’ve read and understood that i have to put in my functions.php thise code is it right?

    add_filter(‘get_the_terms’, ‘hide_categories_terms’, 10, 3);
    function hide_categories_terms($terms, $post_id, $taxonomy){

    // define which category IDs you want to hide
    $excludeIDs = array(6);

    // get all the terms
    $exclude = array();
    foreach ($excludeIDs as $id) {
    $exclude[] = get_term_by(‘id’, $id, ‘category’);
    }

    // filter the categories
    if (!is_admin()) {
    foreach($terms as $key => $term){
    if($term->taxonomy == “category”){
    foreach ($exclude as $exKey => $exTerm) {
    if($term->term_id == $exTerm->term_id) unset($terms[$key]);
    }
    }
    }
    }

    return $terms;
    }

    But where do I have to set the IDs of the categories (such as 34, 45) ?

    Thanks again Gianluca

    in reply to: disable related posts #582160

    Hi, here is my site: http://www.rimedical.it/news/dieta/obesita-e-sovrappeso-non-basta-lindice-di-massa-corporea-per-definire-la-malattia/
    As you can see related posts still exists in footer.
    I tried:
    .related_posts {
    display: none;
    }
    and also
    .related_posts {
    display: none !important;
    }

Viewing 5 posts - 211 through 215 (of 215 total)