Home Forums Newsletter Plugin Support Enhancement for better theming

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10008
    Amurdad
    Participant

    Hi,

    First of all thanks for your very useful and greath plugin. I’m on my way to setup this plugin for my site an came along a special request. I don’t want to change / mod your plugin directly if I can avoid.

    So it would be greath if you could consider the following change:

    function categories_group($name, $show_mode = false, $taxonomy = ‘category’, $top_level = false) {
    $categories = get_categories( array( ‘taxonomy’ => $taxonomy, ‘hide_empty’ => 0 , ‘parent’ => (($top_level) ? 0 : ”) ) );

    I need to filter for custom taxonomy. Mayby passing the args would do best and keep flexibility.

    function categories_group($name, $show_mode = false, $cat_args = ”) {
    $categories = get_categories( $args );

    Best regards

    #10027
    Stefano
    Keymaster

    Hi, thank you I’ll keep you code for a future release. In the meanwhile you don’t need to modify the plugin: if you code a custom theme, you can add your own controls to extract the custom taxonomies.

    #10044
    Amurdad
    Participant

    Hi,
    Thanks for the reply. Can you tell me how to add new controls to your class without editing it? That would be perfectly fit my needs, because I’m working on a custom theme.

    #10173
    Stefano
    Keymaster

    Hi, you can create your own control an keep them in the theme.php file. You can access the option using $controls->data which is the array with all the options.

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