• Resolved pervez121

    (@pervez121)


    I want to be able to add a custom filter between tags and categories in the sidebar layout. For example, I want to place two blog titles that are most viewed under a filter named “Most Viewed.” I really like the idea of being able to move the filter up and down.

    Can I use the format option to add the custom filter I want? Is there another way to create a custom filter? Or can I place a shortcode between the filters to get the most viewed posts?

    • This topic was modified 1 year, 4 months ago by pervez121.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YMC

    (@wssoffice21)

    Hi!
    If we understand you correctly, you should use filter hooks to insert some content inside the filter wrapper.. use the following hooks:
    Add your content before or after the filter bar
    add_action(“ymc_before_filter_layout_FilterID_LayoutID”);
    add_action(“ymc_after_filter_layout_FilterID_LayoutID”);

    Or
    Add your content before or after the post grid layout
    add_action(“ymc_before_post_layout_FilterID_LayoutID”);
    add_action(“ymc_after_post_layout_FilterID_LayoutID”);

    For more information, please refer to the plugin documentation https://github.com/YMC-22/smart-filter

    Thread Starter pervez121

    (@pervez121)

    Thank you, it worked

    Plugin Author YMC

    (@wssoffice21)

    Good Luck!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom filter option’ is closed to new replies.