• Resolved roxchou

    (@roxchou)


    Hi,

    Is there a way to exclude a specific post in Alx popular posts tab?

    I don’t want to exclude a category or posts based on date. I would like to exclude 2 specific posts.

    Thanks!

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter roxchou

    (@roxchou)

    To make it work I omitted

    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );

    and replaced it with your line item 5.

    Thanks again for everything! Don’t know what we’ll do without you!!!

    Thread Starter roxchou

    (@roxchou)

    Hi dbrown,

    after updating the theme to 3.1.6, website goes blank. Deleting the lines below from the functions.php file resolved the problem.

    function hu_load() {
    // Load theme languages
    load_theme_textdomain( 'hueman', get_template_directory().'/languages' );
    
    // Load theme options and meta boxes
    //load_template( get_template_directory() . '/functions/theme-options.php' );
    load_template( get_template_directory() . '/functions/init-meta-boxes.php' );
    
    // Load custom widgets
    load_template( get_template_directory() . '/functions/widgets/alx-tabs.php' );
    load_template( get_template_directory() . '/functions/widgets/alx-video.php' );
    load_template( get_template_directory() . '/functions/widgets/alx-posts.php' );
    
    // Load dynamic styles
    load_template( get_stylesheet_directory() . '/functions/widgets/alx-tabs.php' );

    Can you let me know what to change in the above code so that it functions with version 3.1.6 and excludes the posts I want?

    Thank you!

    All those locations are still valid in v3.1.6 so I don’t think that would be the problem. The other thing you should do is check /functions/widgets/alx-tabs.php to see if it’s changed. Best bet might be to copy the 3.1.6 version of the file to your child theme and make the same modifications you made previously.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘How to exclude a post in Alx Tabs’ is closed to new replies.