Forum Replies Created

Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter celin007

    (@celin007)

    Yes Jeroen , they are both the same. Thanks for the prompt reply.

    Best wishes,
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks Jeroen. Great plugin and already gave a 5 star review.

    Is there anyway we can sort the result in a way that results with keyword in title appear first then with keyword in description appear/ list after that.

    Thanks
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks Jeroen.

    My client wanted to have two categories within the same directory. I have fixed it by adding separate icons next to the title.

    Thanks
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks Jeroen for the prompt reply. Yes, it’s a nice to have feature for the plugin. Looking forward for this feature.

    Thanks for the great plugin and good luck!
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks for the quick response.

    I would like to share/ send a post from one subsite to another so that it appears as a new post in that subsite.

    My understanding is with the Network Posts Extended plugin, I’ll be able to send posts from one subset to another but the post will remain/ show from the original site – the post link with remain with the original site it is created.

    Thanks
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks, the issue is fixed by changing the Jump to Name Directory when searching to No.
    Great plugin. Thanks

    Thread Starter celin007

    (@celin007)

    Is it possible to include this as a premium addon for the plugin ?

    Thread Starter celin007

    (@celin007)

    Thanks Tijmen for the quick response.

    I included the below code in the function.php of the child theme. But the results remain the same, the results are not sorted based on category.

    add_filter( ‘wpsl_store_meta’, ‘custom_store_data’, 25, 25 );

    function custom_store_data( $store_meta, $store_id ) {

    $terms = wp_get_post_terms( $store_id, ‘wpsl_store_category’ );

    $store_meta[‘terms’] = ”;

    if ( $terms ) {
    if ( !is_wp_error( $terms ) ) {
    if ( count( $terms ) > 1 ) {
    $location_terms = array();

    foreach ( $terms as $term ) {
    $location_terms[] = $term->name;
    }

    $store_meta[‘terms’] = implode( ‘, ‘, $location_terms );
    } else {
    $store_meta[‘terms’] = $terms[0]->name;
    }
    }
    }

    return $store_meta;
    }

    Can you please advice me what values I need to pass in the function add_filter( ‘wpsl_store_meta’, ‘custom_store_data’, 10, 2); in place of 10 and 2. I have 100 stores so how can I pass the values for store ids?
    My category ids are 25,24 and 27 for clothing, shoes and watch stores.

    Thanks for your help.

    Kind regards
    Celin

    Thread Starter celin007

    (@celin007)

    Thanks Tijmen for the quick response.

    I included the below code in the function.php of the child theme. But the results remain the same, the results are not sorted based on category.

    add_filter( ‘wpsl_store_meta’, ‘custom_store_data’, 25, 25 );

    function custom_store_data( $store_meta, $store_id ) {

    $terms = wp_get_post_terms( $store_id, ‘wpsl_store_category’ );

    $store_meta[‘terms’] = ”;

    if ( $terms ) {
    if ( !is_wp_error( $terms ) ) {
    if ( count( $terms ) > 1 ) {
    $location_terms = array();

    foreach ( $terms as $term ) {
    $location_terms[] = $term->name;
    }

    $store_meta[‘terms’] = implode( ‘, ‘, $location_terms );
    } else {
    $store_meta[‘terms’] = $terms[0]->name;
    }
    }
    }

    return $store_meta;
    }

    Can you please advice me what values I need to pass in the function add_filter( ‘wpsl_store_meta’, ‘custom_store_data’, 10, 2); in place of 10 and 2. I have 100 stores so how can I pass the values for store ids?
    My category ids are 25,24 and 27 for clothing, shoes and watch stores.

    Thanks for your help.

    Kind regards
    Celin

    • This reply was modified 4 years ago by celin007.
    Thread Starter celin007

    (@celin007)

    Thanks Bernhard. You are a genius, I didn’t think that way.

    Regards
    Celin

    Thread Starter celin007

    (@celin007)

    Hi Bernhard,

    Thanks for the quick response.

    Imagine the variable date has value 2/3/2020
    The variable {date} will have value for a time period (for example from 1/3/2020 to 20/3/2020). All other times the value will be null.

    Input – {date:ifNotEmptyAddRight} output is empty
    Input – {date:ifNotEmptyAddRight:{date}} output shows 2/3/2020 2/3/2020 (displays twice)

    I want to display just the date not any text in front or after it.

    Is it possible to display just the date if not null?

    Thanks for all your help.

    Kind Regards
    Celin

    • This reply was modified 4 years, 8 months ago by celin007.
Viewing 11 replies - 16 through 26 (of 26 total)