Tell us what you are trying to do?
. There is a post type "Job" and we are trying to display the filter on the Archive page
Is there any documentation that you are following?
Our site uses a classic editor, so we are using shortcodes. It tried to follow official documentation for the toolset.
Is there a similar example that we can see?
We do not have similar options but here is the link hidden link
here is the code:
<label>Industry:</label>
<?php echo do_shortcode('[wpv-post-taxonomy type="xtk_job_category"]'); ?>
<label>Position Type:</label>
<?php echo do_shortcode('[wpv-post-taxonomy type="xtk_job_position_type"]'); ?>
<label>Location:</label>
<?php echo do_shortcode('[wpv-post-taxonomy type="xtk_job_location"]'); ?>
<label>Currency:</label>
<?php echo do_shortcode('[wpv-post-taxonomy type="xtk_job_currency"]'); ?>
<label>Salary:</label>
<?php echo do_shortcode('[wpv-post-taxonomy type="xtk_job_salary_range"]'); ?>
I looked at the link you shared, and it's not clear what I should be seeing, or what the code you shared refers to.
Are you trying to add search filters to a custom archive?
The code you shared looks like you are working directly in a PHP template for the job archive, but that's not how you would add filters to a search archive at all.
You need to edit the archive at Toolset > WordPress Archives and insert the filters (the shortcodes will be generated automatically) using the New Filter button of the Search and Pagination editor.
If you don't see that, you should have seen a dialog which indicates how and where you can expose the custom search filters and settings for an archive, as you can see in my screenshot.
You can use a custom PHP template to design the output of the Job archive, but it is not intended that you add search filters that way.
If you prefer working directly in the PHP templates, you could try creating the custom archive with the legacy Toolset editor that uses shortcodes, and then include all of the shortcodes from the custom archive in your PHP file.
I don't know if that will work, I doubt it is something anyone has ever done before. If it works you can use it, if not, you'll need to use the Toolset editor to design the custom archive.
Can you please share admin access details and let me check what's going wrong with your setup.
*** 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 have set the next reply to private which means only you and I have access to it.
No email required. You just setup admin user account with any email and send me username and password to login.
*** 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 have set the next reply to private which means only you and I have access to it.
No, if you create a new archive and select 'Job' posttype then we get a blank page. Currently, the job page is pulling from the PHP template. If we use the plugin functionality of archive, that part is not working at all for the Job post type. Why SO?
I would like to first ensure that you want to build post type archive for Job post type using Toolset or you want to use PHP archive template added to theme?
- Can you please confirm what archive you want to use?
Also, I can not see the PHP template archive as I do not have FTP access details and to access the PHP template archive I need FTP access details.
I also see with your staging site most of you plugins you are using is outdated, Can you please update ALL plugins.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (FTP) to your site.
I have set the next reply to private which means only you and I have access to it.
Thank you but can you please share details to what PHP template you added the code you shared? What template file I should open where I can see the code you added.
The topic ‘[Closed] Shortcodes not working’ is closed to new replies.