Giter Site home page Giter Site logo

themefuse / unyson Goto Github PK

View Code? Open in Web Editor NEW
923.0 76.0 218.0 10.88 MB

A WordPress framework that facilitates the development of WP themes

Home Page: http://unyson.io

PHP 42.27% CSS 13.35% JavaScript 23.81% Shell 0.06% HTML 20.50%
wordpress theme shortcode backup page-builder

unyson's People

Contributors

ace0k avatar albertso avatar alexsnowb avatar andreiglingeanu avatar ange007 avatar ataurr avatar codesman avatar danyj avatar davidossahernandez avatar dmcclintock avatar gheorghep avatar imrankhalid avatar llemurya avatar martinburdon avatar mbissett avatar nasimnet avatar nikschavan avatar parviz-elite avatar philthetechie avatar player0k avatar rajeebbanstola avatar rawcreative avatar rockalife avatar sergiu-radu avatar sergiubagrin avatar thednp avatar valeriuzdrobau avatar vbarbarosh avatar vioreleremia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unyson's Issues

Getting saved metabox values.

Thank you for this awesome framework.However I am unable to get the meta values.How can I get the meta value of this?

    'demo_addable_option_2' => array(
        'label' => __('Addable Option', 'fw'),
        'type'  => 'addable-option',
        'option' => array(
            'type' => 'text',
        ),
        'value' => array('Option 1', 'Option 2', 'Option 3'),
        'desc'  => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
        'help'  => sprintf("%s \n\n'\"<br/><br/>\n\n <b>%s</b>",
            __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
            __('Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'fw')
        )
    ),

No sidebar ?

Hi and thank you for this great framework.
I give it a try actually and I discovered there's no main widgets area... even in the testlab site.
But there's still a container (secondary) for a sidebar (primary) in the frontend.
Well, it's a bit weird but sure you will help ;-)
Thanks in advance

Separate between core and extension

Hello , so i just create a WordPress theme using this awesome framework and submit it to marketplace.But i got rejected.I knew it will be rejected because one issue WARNING from Theme-Check , it was add_shortcode for create visual layout editor.But since it was part of framework and i need that functionality , i can't get rid of it.
So it will be nice if you separate all extension into independent plugin.Something like a la carte things.
Sorry for my broken english , just in case you want to see it , check this link http://demo.guedisini.com/vaskhia/ , thank you for this framework , love it so much.

Visual Layout Builder

Hey,

Thank you for this awesome framework.

How to add Visual Layout Builder to custom post type ?
How to add support for "paragraph" to wp-editor ? (In shortcodes)

Thanks
Michael

Don't assume WP_DEBUG is always defined.

I see a couple occurrences that look like:

if ( ! defined( 'WP_DEBUG' ) ) {
    die( 'Direct access forbidden.' );
}

WP_DEBUG is the wrong constant to check for. There are some legacy sites whose wp-config file doesn't include a WP_DEBUG constant, so on a legit install, it wouldn't be there.

I'd suggest switching to checking for ABSPATH instead.

WP_DEBUG was only included by default in sites installed since v3.0, and was first added via r13185 and #12236

release ZIPs

Please include the README and the LICENCE in the parent theme's folder to allow exraction into wp-content/themes.

Get rid of base64 encode and decode

Hi again!Is there any way to get rid of base 64 encode and decode? This looks weird when I switch theme ,atleast I can read the shortcode content.

Post Content vs Post Meta with Wordpress Importer Tool

hi,

i have one question regarding post content vs post meta.

when i look up the database fields, in post content i see this type of data :
[text_block text="PGgzPkJ1dHRvbnM8L2gzPgo="][column type="MS0z" first_in_row="dHJ1ZQ=="][text_block ......

and in post meta i see :
a:3:{i:0;s:0:"";s:14:"layout-builder";a:3:{s:4:"json";s:6498:"[{"type":"simple","subtype":"text_block","optionValues":{"text":"

Buttons</h3>\n"}},{"type":"column","subtype":"1-3","_items": .........

and i do have some issues with this. i tried to make export of the contents with wordpress importer tool, and import contents to another place. After importing, when editing the content pages, in wordpress editor i started seeing "[text_block text="PGgzPkJ1dHRvbnM8L2gzPgo="][column type="MS0z" firs" this.

screen shot 2014-10-28 at 01 24 32

when i do have only 1 element in layout builder, this is not happening. i do have this when i have shortcode and columns.

thanks in advance.

Unyson with a Standard Theme

Hello,
I wanted to connect Unyson with "twentytwelve".
So far, so good.
(Btw. the normal installation works great)

With the Visual Layout Editor I made two ยฝ Sections.
But the divs are among each other.
The CSS does not apply. Wrong path.

Which css file should I include?

A little Tutorial "Combine Unyson framework with a Standard, selfmade theme" (or something like that) would be very helpful.

With excitement, I expect the next versions of Unyson. Great work !!!

P.S. I have read the docs, but failed.

Built-in Option Type: Multi-Picker (Select)

Hi there,
I have a select box with 10 options ("option-1" will link with 3 textbox, rest of 9 options link with the same 2 textbox and 1 textarea. You know the problem is I have to define all of 10 options that let me use so many lines of code, and what's happened if I have a select box with more than 10 options ? Is there any solution to make this Option Type more flexible ?

Conflict with Maintenance plugin

I installed the Maintenance Plugin http://plugins.fruitfulcode.com/maintenance/ as I have on a couple other sites and when I go to the plugin options page (only on this page) I get this error.

Warning: Missing argument 2 for _FW_Component_Backend::_action_create_post_meta_boxes() in /var/www/vhosts/new.hawaii-aloha.com/wp-content/themes/Unyson/scratch-parent/framework/core/components/backend.php on line 360

Looks like _action_create_post_meta_boxes() takes 2 arguments, but this function is only referenced by an add_action call and it doesn't look like the second arg is getting passed.

Not a big deal, the plugin still functions fine and I only get this error when I go to that one settings page.

Summary of some minor bugs

Hi,

since we found a few bugs, we don't want to open a new issue for each. So we sum it up here:

1.) Mega Menu Icons are broken, seems to be related to the other broken icons we reported. So please have an additional look into this issue as well.

2.) Autocomplete for Appearance -> Widgets -> Sidebars -> For Specific Pages seems to be broken.

3.) Addable Options do not have a handle text. It's hard to identify.

And a last questions. Is it possible to overwrite or extended an extension? We like to make a slight modification to the megamenu adding a separate icon output instead of having the output directly on the menu a tag. Again thanks for all your help and efforts. We really enjoy the framework.

Best Regards
UT

Installation For Noobs?

So I came across unyson and I thought, "Oh this will be cool" and everywhere I read it's like the "Documentation is great". I have yet to find a step by step on how to get this framework to work. Extract it to wp-content/themes is hardly excellent documentation nor a step by step. I have done that and I have also added the framework folder to an existing them and changed the functions.php. Still nothing.. Can someone help a noob out here cause this is starting to get really frustrating, so much that I'm just about to give up and go back to ultimatum.

Built-in Option Types: Icon

Hi there,
Sorry for bother you again.
Please add class 'active' to <i class="fa fa-icon ... "></i> to highlight it when loads this Option from the last saved.
Thanks.

Theme Settings - Options

Hey,

Thanks for this great framework.
I have one problem.

My settings.php code:

$options = array(
    'main_post' => array(
        'type'  => 'box',
        'options' => array(
            'post_header' => array( 
                'title' => __('General', 'fw'),
                'type'  => 'tab',
                'options' => array( 
                    'main_logo' => array(
                        'type' => 'upload',
                        'label' => __('Logo', 'unyson'),
                        'desc' => __('Please select the logo image.', 'unyson'),
                    ),
                    'main_logo_retina' => array(
                        'type' => 'upload',
                        'label' => __('Logo Retina', 'unyson'),
                        'desc' => __('Please select the logo image for Retina displays.', 'unyson'),
                    ),
                    'my_text' => array(
                        'type'  => 'textarea',
                        'label' => __( 'My Text', 'fw' ),
                        'desc'  => __( 'Write the heading subtitle content', 'fw' ),
                    ),
                ),
            ),
            'post_layout' => array( 
                'title' => __('Blog', 'fw'),
                'type'  => 'tab',
                'options' => array(

                ),
            ),
        ),
    ),
);

Get options:

$settings_options = fw()->theme->get_settings_options();
echo $settings_options['my_text'];

I do not know why but I have nothing.
So please help and sorry for my english.

Image Preview does not work with image sizes below "thumbnail"

Image Preview does not work with image sizes below "thumbnail" which is 150px * 150px by wordpress default. Therefore, favicon field in demo does not work.

It will get this error whenever I upload an image below thumbnail size.
images-only.js line 47

url = attachment.get('sizes').thumbnail.url,
Uncaught TypeError: Cannot read property 'url' of undefined 

It should pull original image if there is no thumbnail size.

Framework Customization

Hi,
Thank's for great framework, I realy love it. How can I add custom css styles for framework?

Sidebar when Front page displays is set to static page

hi,

i have issue related to sidebars.

my front page settings are like this: a page for front page, and another static page for posts page.

after this, i cannot assign sidebar to blog posts page.

i tried to solve it like this :

if (is_home() && get_option('page_for_posts') != '0' && get_option('show_on_front') == 'page') {
    $data['type']     = $this->config->get_type_by_prefix(_FW_Extension_Sidebars_Config::POST_TYPES_PREFIX);
    $data['sub_type'] = 'page';
    $data['id']       = get_queried_object_id();

    $result = $this->get_preset_sidebars($data);
    if ( $result )
        return $result;
}

i am not sure if this is the right way.

now i have second issue, i do have woo commerce installed, and have shop page. from sidebars, i selects products from grouped pages and assign shop sidebar, and from specific pages, select shop page and assign the same sidebar. in product detail, the sidebar is shown, but in shop page, it is undefined.

should i use something like is_shop() in class-fw-extension-sidebars-frontend.php ?

thanks a lot.

enqueuing fw stylesheet

i'm working on rtl-support version of the framework and i have finished customizing the new fw-rtl.css.
I found that in framework/core/components/backend.php the scripts and styles are registered but i can't find where it was enqueued
I hope to understand my english :)

Built-in Option Types: Icon

Hi there,
Sorry for bother you guys again.
Is there any way to pick multiple icons instead of one icon at a time ? Or I have to create a custom Option Type to do this ?
Thanks in advanced.

Option "Upload" - Image thumb

Hey,

If I use the "upload" to upload a logo is a logo / picture is not re-generated to thumbnails
example: 150x150px
In the options "background-image" and "multi-upload" working properly.

PS. I upload logo in .png and 105x44px

Thanks

Extension: Builder

Hi there,
When I create a custom page with Visual Layout Editor, the render view in front-end will be wrapped by a DOM selector with class name

fw-layout-builder-content
. The question is: can I replace this one by my own, or simply add more class names into it ?
Any helps would be appreciated. Thanks in advanced !

multi-picker data doesn't return automatically in builder

Hi,

I created custom section for Layout Elements tab. But the layout doesn't return data automatically. It's showing error when on var_dump.

Notice: Uninitialized string offset: 0 in C:\Program Files (x86)\Ampps\www\Mobiholic\wp-content\themes\mobiholic\framework-customizations\theme\shortcodes\header-section\views\view.php on line 2
string(0) ""

But once I save the section then save the page then it's working fine and return data perfectly.

array(3) { 
    ["background"]=> array(3) { 
        ["background"]=> string(5) "image" 
        ["video"]=> array(1) { 
            ["video_url"]=> string(0) "" 
        } 
        ["image"]=> array(1) { 
            ["image_att"]=> string(0) "" 
        } 
    } 
    ["overlay_color"]=> string(0) "" 
    ["parallax"]=> bool(false) 
}

Here is my codes: https://github.com/AminulBD/section-header

Can you please fix it?

JS Conflict w/ WP SEO plugin

If a user has the WP SEO plugin installed on their site the plugin's version of Qtip (currently version 1.0.0) overrides the frameworks version since it's loaded into the footer. While this does not cause any js errors it does mess with the framework's tooltips on edit pages, as well as breaks the layout builder's templates (they will not insert or save). Since this is such a widely used plugin it would probably be best to resolve this conflict within the framework rather than tell users to disable the plugin.

Theme Options Page

Hi,

Is there any way to move Theme Options submenu to top level menu?

New support for short-code table

Hi again,

Could you support button row for short-code table (Pricing) ?
I think it's most important for table pricing.

Thanks.

HHVM Compatibility

Just wanted to give a heads up that currently Unyson is not compatible as-is with HHVM. The register_tick_function that is used in conjunction with FW_Cache does not exist in HHVM and throws a fatal error.

The error can obviously be remedied by commenting out that block of code at the bottom of class-fw-cache.php but I'm unsure of the implications of this since I have yet to go through the Cache code to become familiar with how caching is handled.

So far this is the only incompatibility that I've found, however I have not tested all of the extensions thoroughly.

how to display option on frontend

How to get option value on front end.
also can you tell me what is id of option in below code

$options = array(

    'demo_text' => array(

        'label' => __('Text', 'fw'),

        'type'  => 'text',

        'value' => 'Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium',

        'desc'  => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),

        'help'  => sprintf("%s \n\n'\"<br/><br/>\n\n <b>%s</b>",
            __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
            __('Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'fw')

        ),

    ),

);

Show preview of block

It would be fine if there would be a preview of the inserted block so it's better to orient in the page structure. If I'm editing the page currently there is just "Special Heading", "Text Block" so I have to check the preview page, where the correct block is.

Theme options switch default value

Hi,

i am developing a theme using unyson framework. i have theme options fields using switch field.

when i make a fresh installation with no options in database, i do have default values set in theme options file, for example true value for switch option. In wordpress theme options page, i am always getting false values for every switch option.

how to solve this ? thank you very much.

WordPress 4.0 - Add Media in Text-Block (Page Builder)

Hi,
It seems that Add Media isn't working in the Page Builder (Text Block).
On clicking 'Insert into Page' in the thickbox, the popup disappears as expected, but the image is not added to the editor.

It was kinda working fine in WordPress 3.9.2 (actually it added relative paths to images like href="../wp-content/uploads/2014/09/image.png" which didnt really work well with directory installations)

I would think that this might have something to do with the fact the WP updated TinyMCE to 4.1.3 in Benny

Btw, great work on the framework. You guys rock!

P.S> I am on WAMP in case thats relevant.

Background image picket not working in builder

Hi,

I'm trying to add background image picker in the layout builder. Its doesn't working good.

Check this image.
image-picker

Here is my code:

'header_overlay_styling' => array(
            'type'  => 'multi-picker',
            'label' => false,
            'desc'  => false,
            'picker' => array(
                'header_overlay' => array(
                    'label' => __('Overlay', 'fw'),
                    'type'  => 'switch',
                    'right-choice' => array(
                        'value' => 'pattern',
                        'label' => __('Pattern', 'fw')
                    ),
                    'left-choice' => array(
                        'value' => 'color',
                        'label' => __('Color', 'fw')
                    ),
                    'value' => 'yes',
                    'desc'  => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
                    'help'  => sprintf("%s \n\n'\"<br/><br/>\n\n <b>%s</b>",
                        __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.', 'fw'),
                        __('Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium', 'fw')
                    ),
                )
            ),
            'choices' => array(
                'pattern' => array(
                    'pattern_img' => array(
                        'label' => __('Pattern', 'fw'),
                        'type'  => 'background-image',
                        'value'   => 'none',
                        'choices' => array(
                            'none' => array(
                                'icon' => get_template_directory_uri() . '/images/patterns/no_pattern.jpg',
                                'css'  => array(
                                    'background-image' => 'none'
                                )
                            ),
                            'bg-1' => array(
                                'icon' => get_template_directory_uri() . '/images/patterns/diagonal_bottom_to_top_pattern_preview.jpg',
                                'css'  => array(
                                    'background-image'  => 'url("' . get_template_directory_uri() . '/images/patterns/diagonal_bottom_to_top_pattern.png' . '")',
                                    'background-repeat' => 'repeat',
                                )
                            ),
                            'bg-2' => array(
                                'icon' => get_template_directory_uri() . '/images/patterns/diagonal_top_to_bottom_pattern_preview.jpg',
                                'css'  => array(
                                    'background-image'  => 'url("' . get_template_directory_uri() . '/images/patterns/diagonal_top_to_bottom_pattern.png' . '")',
                                    'background-repeat' => 'repeat',
                                )
                            ),
                        ),

                    )
                ),
                'color' => array(
                    'color_hex' => array(
                        'type' => 'color-picker',
                        'label' => __('Overlay Color', 'unyson'),
                        'desc' => __('Please select the overlay color', 'unyson'),
                    )
                ),
            ),
        ),

Can you guys help to get working this?

Thanks for the nice framework.

Demo of Unyson

I've registered for the demo, however when I enter the demo I'm presented with the default theme (twenty fourteen) and all other options are standard.
If I change the theme in the demo, I'm presented with what I believe is the old framework fusion?

Installation fails on localhost with MAMP

Hi, I tried to install the unyson framework on my localhost with MAMP 2.1.3 (PHP 5.4.10). But without success. I tried both ways you described in the docs. I always get just a white screen. When I tried to install only the framework, the white screen (dashboard and frontend) appears at the moment of including

require_once TEMPLATEPATH .'/framework/bootstrap.php';

in the functions.php.
When I tried to activate the default theme in the dashboard, there was exactly the same behaviour, and I had to change the theme in the database to get my dashbord back.
I 'm not a WordPress genius expert, and I could not figure out, what I did wrong.

Question: Roadmap for shortcodes

Hi guys,
Its been a great experience working with Unyson!

Just wanted to know if there is a 'shortcode generator' on the dev roadmap? Something like a lot of themes provide in the TinyMCE editor.

cheers
Jasin

Built-in Option Types: Color Picker

Hello again,
It would be nice if you guys can add an alpha parameter to Color Picker so that we can use it for rgba() function.
Have a nice day ! Thanks.

Reading Settings > "Blog pages show at most" broken

Hi,

at first of all, thanks for providing this framework to the crowd. So far we really enjoy it. However I think we have discovered a small glitch with the mentioned WordPress native option mentioned inside the title.

We were able to narrow it down to the helper.php inside the framework-customization/extensions/portfolio/helpers.php on line 83++

if( !$query->is_main_query() ) { return; }

shouldn't it be

if( $query->is_main_query() ) { return; }

?

Regards
UT

Query Post Using Post Option Value Parameter

I have custom post type named 'download' in my theme. I create checkbox option to set this post type as featured download, so when the checkbox checked the download post become featured download. I want to display latest featured download using this post option parameter. This is my wp query but it doesn't work.

$args=array(
        'post_type' => 'download',
        'posts_per_page'=> 10,
        'meta_query' => array(
            array(
                'key'     => 'feature_download',
                'value'   => '1'
            ),
        ),
        'ignore_sticky_posts' => 1
    );
$my_query = new wp_query($args);

Can you help me? thanks

Blank page after theme activation

When I activate the theme, every pages (both front-end and back-end) turns into blank theme.

So I turned on 'WP_DEBUG' and it shows this error:
Fatal error: Class 'FW_Cache_Not_Found_Exception' not found in /Applications/MAMP/htdocs/wp/wp-content/themes/unyson/scratch-parent/framework/helpers/class-fw-cache.php on line 70

Note that I used MAMP with PHP 5.4.4 and WordPress 4.0 downloaded from WordPress.org

Built-in Option Types: Typography

Hi there,
Is there any way to add more options to Typography like line-height and letter-spacing ?
Any helps would be appreciated. Thanks so much !!

Build-In Option Type Date Picker minDate and maxDate don't work

When specify min-date and max-date for option type date-picker won't work, after studying the source code, I found the JS plugin option does not matched with the definition of PHP.

I changed the following code to make it work
/framework/includes/option-types/date-picker/class-fw-option-type-wp-date-picker.php

line 56 and 57, change 'minDate' and 'maxDate' to 'startDate' and 'endDate' respectively.

Also, I changed /framework/includes/option-types/date-picker/static/js/script.js

from line 18, rearrange the order for JS Date object

new Date( date[1]-1, date[2], date[0] );
to
new Date( date[2], date[1]-1, date[0] );

and added exception when min-date specified null (remove the startDate limitation from the default of current date, while preserve the default option when the startDate not specified)

if( options.startDate != null || options.startDate != undefined ) {
var date = options.startDate.split('-');
defaults.startDate = new Date( date[2], date[1]-1, date[0] );
} else if( options.startDate == null) {
defaults.startDate = null;
}

if( options.endDate != null || options.endDate != undefined ) {
    var date = options.endDate.split('-');
    defaults.endDate = new Date( date[2], date[1]-1, date[0] );
}

Bugs Framework Plugin

I thought the great news today, with version for Unyson Framework as a plugin.

I found the following errors and failures:
1 empty Themes Settings
2 Add New Slider incomplete
3 Error trying to create a slide:
Fatal error: Call to a member function get_multimedia_types () on a non-object in C:\xampp\htdocs\unyson\wp-content\plugins\unyson\framework\extensions\media\extensions\slider\class-fw-extension-slider.php on line 302
4 Search Engines empty
5. new page after clicking Visual Layout Editor, only in Slider Media Elements aparace.
Follow my screenshots.
2014-09-17 10_27_43-theme settings paulo nunes _ creative designs wordpress
2014-09-17 10_28_34-theme settings paulo nunes _ creative designs wordpress
2014-09-17 10_29_26-add new slider paulo nunes _ creative designs wordpress
2014-09-17 10_29_51-mozilla firefox
2014-09-17 10_30_12-seo paulo nunes _ creative designs wordpress
2014-09-17 10_30_48-plugins paulo nunes _ creative designs wordpress
2014-09-17 10_31_19-adicionar nova pagina paulo nunes _ creative designs wordpress
2014-09-17 10_33_15-shellview

Option Type: Multi-Select working incorrect.

I found a bug when i working with Multi-Select type:
framework/includes/option-types/multi-select/class-fw-option-type-multi-select.php

I have blog categories blow:

Beauty
Life
Lookbook
Sex & Love
Style
Technology
Uncategorized
Video

  • if you try search with "bea" it working ok.
  • if you try search with "lif" or "life" or other category name above it show nothing.

Your code ( from line 109 ):

$items = $wpdb->get_results(
    call_user_func_array(
        array($wpdb, 'prepare'),
        array_merge(
            array(
                "SELECT terms.term_id val, terms.name title " .
                "FROM $wpdb->terms as terms, $wpdb->term_taxonomy as taxonomies " .
                "WHERE terms.name LIKE %s AND taxonomies.taxonomy IN ( ".
                implode(', ', array_fill(1, count($names), '%s')) .
                " ) " .
                "AND terms.term_id = taxonomies.term_id " .
                "AND taxonomies.term_id = taxonomies.term_taxonomy_id " .
                "LIMIT 100",
                '%'. $wpdb->esc_like($title) .'%'
            ),
            /**
             * These strings may contain '%abc'
             * so we cannot use them directly in sql
             * because $wpdb->prepare() will return false
             * also you can test that with sprintf()
             */
            $names
        )
    )
);

should replace width:

 $taxonomies = $names;
$args = array(
    'orderby'           => 'name',
    'order'             => 'ASC',
    'hide_empty'        => false,
    'exclude'           => array(),
    'exclude_tree'      => array(),
    'include'           => array(),
    'number'            => '',
    'fields'            => 'all',
    'slug'              => '',
    'parent'            => '',
    'hierarchical'      => true,
    'child_of'          => 0,
    'get'               => '',
    'name__like'        => '',
    'description__like' => '',
    'pad_counts'        => false,
    'offset'            => '',
    'search'            => $title ,
    'cache_domain'      => 'core'
);
$terms = get_terms($taxonomies, $args);
$items = array();
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
    foreach( $terms as $t ){
        $items[] = array(
            'val' => $t->term_id,
            'title' => $t->name,
        );
    }
}

Also, Method _render is working incorrect .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.