Skip Navigation

[Resolved] retrieve custom post that contains the taxonomy

This support ticket is created 6 years, 6 months 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.

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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Minesh 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#947657

I have the following View Loop:

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
<select class="chosen-select" style="height: 25px; width: 23vw;" name="eng-slct" id="eng-slct" size="3">
		<wpv-loop>
			<option value="[wpv-taxonomy-url]">[wpv-taxonomy-title]</option>
		</wpv-loop>
</select>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

The JS Editor section contains:

jQuery(document).ready(function($){
  $("#eng-slct").on("change", function(){
    if($(this).val() != "") {
        location.href = $(this).val();
    }
  });
});

This returns the taxonomy post, what I need is to display the custom post that this taxonomy appears in, I only the first post that the taxonomy appears in and then exit the loop.

Thanks for any help
David

#947739
view-settings.JPG

I've included a screenshot of the view settings, in the Query Filter when I use "Taxonomy is set by the current post" on the front end for this dropdown I receive "No items found"

#948238

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Well - As I understand, you want to display the only posts that belongs to the taxonomy terms attached to the post? Additionally, I need to know where you added the view.

I will not be able to assist you with your query here until I will not check your current setup. Could you please share problem URL where you would like to display the select box.

*** 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.