Skip Navigation

[Resolved] do not display Post Title until they perform a search

This support ticket is created 8 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 21 replies, has 2 voices.

Last updated by Minesh 8 years ago.

Assisted by: Minesh.

Author
Posts
#375966

Hi Support Team,

I'm trying to hide all the post tittle unless somebody performs search about them.

Looking for ASAP Solution.

Thanks,

#376041

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

If I'm not wrong, you are using parametric search view on that page. if this is true, yes, you can add only search form on one page and show search results ( your products) on different page.

When you try to add your view, it will give you option shown in following image:
=> hidden link

You should select "only search box" option.

Please refer to the following link that may help you:
=> https://toolset.com/documentation/user-guides/front-page-filters/
[ Refer section: "Displaying the Parametric Search View on the Site"]

#376076

Hi ,

I can still see my content related to that post. I want to see my post tittle only when somebody will search for them.

Thanks,

#376084

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I need your problem URL to see which content you are looking to hide. Few screenshots will be helpful to understand your issue.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

I have set the next reply to private which means only you and I have access to it.

#376105

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I do not see "search" button on the link you send it to me.

I would like to know have you tried following options:

When you try to add your view, it will give you option shown in following image:
=> hidden link

You should select "only search box" option.

Please refer to the following link that may help you:
=> https://toolset.com/documentation/user-guides/front-page-filters/
[ Refer section: "Displaying the Parametric Search View on the Site"]

This is how you can display only 'search form" on this page and search result on another page.

#376115

But My client doesn't want a button.

If I'm doing search on one page and result display on another page then how user will be able to go to search bar page

#376120
Screen Shot 2016-03-16 at 10.21.36 AM.png

I was trying to add a button and trying to open the result on the same page. It gave me to two search bar and once was with the all the tittle's on it. I added a screenshot for you.

Thanks

#376124

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Search bar will be available on your result page as well.

You need to select "Only the search box" while adding your view and then select further option:
Where do you want to display the results of this search?
=> select "On another page"
=> create your result page and add there your view again.

#376127
Screen Shot 2016-03-16 at 10.34.09 AM.png

I'm Need to display on the same page, I do get option for that when I selected Only the search box

Please check the screenshot I added.

Thanks,

#376134

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've added following code to your functions.php file:

add_filter( 'wpv_filter_query', 'show_empty_default_func', 10, 2 );
    
function show_empty_default_func( $query_args, $setting ) {
    if($setting['view_id'] == 3209)
    {
        if( !isset($_GET['wpv_view_count'])) 
        {
            $query_args['post__in'] = array(0);
        }
    }
    return $query_args;
}



Now - It will not display any results on your page by default.

#376139

I can still see both of things available on the page .

Thanks

#376140

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please see now.

If you do not need message "No results found" then remove it from your view.

#376149

That's working now, But If user doesn't enter anything and hit the submit button, It display all the the post again.

Thanks,

#376164

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Could you please check now. I've modified code little bit in your functions.php file.

#376177

It still does the same thing... If I don't put anything in search bar and hit submit button IT gives the list for all the Companies

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.