Skip Navigation

[Resolved] After updating Divi Extra, a Views page is including the current page in query

This support ticket is created 2 years, 12 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)

This topic contains 5 replies, has 2 voices.

Last updated by pjF 2 years, 12 months ago.

Assisted by: Minesh.

Author
Posts
#2286391

pjF
Edit_View_‹_Cayenne_Diane_—_WordPress.jpg
THE_BIG_LIST_OF_HOT_PEPPERS_-_Cayenne_Diane.jpg
THE_BIG_LIST_OF_HOT_PEPPERS_-_Cayenne_Diane.jpg

I am trying to: Update to latest Elegant Themes Extra theme

Link to a page where the issue can be seen: hidden link

I expected to see: The first pepper in the list, without the query page's entry first

Instead, I got: The result you see now.

This issue is over 3 years old, but my WordPress is getting 'creaky' and it is overdue for updating the theme. This issue has prevented us from upgrading. You can see from the attached images how it looked before updating which we are happy with.
The options haven't changed, but I included a screenshot of the "Don't include..." option as it is checked. I have gone over the scripts/macros in hopes of finding something that might have changed in Toolset that may address this, but I could not find anything.

#2286645

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

The admin access details you shared with us is not working at this end. Can you please send me working admin access details.

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

#2286983
#2287623

Minesh
Supporter

Languages: English (English )

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

I've checked the view result and the view returns the correct results and the view results does not contain the current post or page where the view is inserted.

The only workaround I found is I've added the following custom JS code to the view's JS box:

jQuery( document ).ready(function($){
   jQuery(".et-boc:first").hide();
});
jQuery( document ).on( 'js_event_wpv_parametric_search_results_updated', function( event, data ) {
	/**
	* data.view_unique_id (string) The View unique ID hash
	* data.layout (object) The jQuery object for the View layout wrapper
	*/
  jQuery(".et-boc:first").hide();
	
});

Can you please confirm it works as expected.

#2287883

pjF

That works pretty well, but there's still three issues:
One is that it draws all the content before hiding this. I'm sure that's due to some JS deferring, and I can likely tweak theme settings and the caching plugin to solve this.

The second issue (and I'm sorry I forgot to mention this before) is that if you look at the Peppers CPT, I have tried to compensate for the issue by adding another pepper named "Test Pepper Ignore" that has a higher scoville rating so the correct first pepper is displayed. If I remove this pepper, we still will not see the proper first pepper entry.

Third, selecting the Pepper Classification filter displays a bad entry for the first in the View's list.

I know in the past certain compatibility workarounds for Divi/Extra have needed to be implemented. I am hoping this can be solved, as we have waited a long time.
Thank you for your help!

#2288659

Minesh
Supporter

Languages: English (English )

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

So, with the following content template, you were using the following code:
=> hidden link

[et_pb_section bb_built="1" specialty="off" _builder_version="3.19.9" background_color="#ebf0f6" gutter_width="3"][et_pb_row _builder_version="3.19.9" gutter_width="3" border_radii="on|3px|3px|3px|3px" border_width_top="5px" border_color_top="#f47c20" custom_css_main_element="box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);" background_color="#ffffff"][et_pb_column type="1_2"][et_pb_text admin_label="featured image" _builder_version="3.19.9" text_orientation="center" border_color_all="#f47c20" border_radii="|0px|0px|0px|0px" text_line_height="1em" border_color_right="rgba(0,0,0,0.1)"]

[wpv-noautop]<a href=" {!{wpv-post-url}!}">{!{wpv-post-featured-image size="medium" style="background-color: rgba(0, 0, 0, 0.1"}!}[/wpv-noautop]</a>

[/et_pb_text][/et_pb_column][et_pb_column type="1_2"][et_pb_text _builder_version="3.19.9" header_3_font="|600||on|||||" header_3_text_align="left" header_3_text_color="#f47c20" ul_font="|700|||||||" ul_text_color="#f47c20" header_2_font="||on||||||" header_4_font="|300|on||||||" header_4_text_color="#d1d1d1" header_4_font_size="10px" custom_margin="|10%||" custom_margin_tablet="|5%||5%" custom_margin_last_edited="on|phone"]
<h3>[wpv-post-link]</h3>
<span style="color: #bbb; text-transform: lowercase; line-height: 0.8; font-style: italic;"> {!{types field='scientific-classification'}!}{!{/types}!}</span>

<hr>

[wpv-post-excerpt]
<ul style="line-height: 1em;">
 	<li><b>Scovilles: {!{types field='scoville-units-hi' format='FIELD_VALUE'}!}{!{/types}!}</b></li>
 	<li><b>Origin: {!{types field='pep-origin'}!}{!{/types}!}</b></li>
</ul>
[/et_pb_text][/et_pb_column][/et_pb_row][/et_pb_section]

The above code holds some divi shortcode that used to be the culprit of this issue. There was no issue from the Toolset as Toolset view returned the correct result.

To solve all the issues, I've removed the above code from the content template and replicate it with the related HTML that above shortcode generates and I've then replaced the dynamic Toolset shortcodes. So the content template code now holds the value as given under instead of above that holds the divi shortcodes:

<div class="et_pb_section et_pb_section_4 et_pb_with_background et_section_regular">
	<div class="et_pb_with_border et_pb_row et_pb_row_4">
		<div class="et_pb_column et_pb_column_1_2 et_pb_column_8  et_pb_css_mix_blend_mode_passthrough">
			<div class="et_pb_with_border et_pb_module et_pb_text et_pb_text_8  et_pb_text_align_center et_pb_bg_layout_light">
				<div class="et_pb_text_inner">
                  		[wpv-noautop]<a href=" {!{wpv-post-url}!}">{!{wpv-post-featured-image size="medium" style="background-color: rgba(0, 0, 0, 0.1"}!}</a>[/wpv-noautop]
              	</div>
			</div>
		</div>
      <div class="et_pb_column et_pb_column_1_2 et_pb_column_9  et_pb_css_mix_blend_mode_passthrough et-last-child">
			<div class="et_pb_module et_pb_text et_pb_text_9  et_pb_text_align_left et_pb_bg_layout_light">
				<div class="et_pb_text_inner"><h3>[wpv-post-link]</h3>
					<span style="color: #bbb; text-transform: lowercase; line-height: 0.8; font-style: italic;"> {!{types field='scientific-classification'}!}{!{/types}!}
                  </span>

<hr>
<p>[wpv-post-excerpt]</p>
<ul style="line-height: 1em;">
 	<li><b>Scovilles: {!{types field='scoville-units-hi' format='FIELD_VALUE'}!}{!{/types}!}</b></li>
 	<li><b>Origin: {!{types field='pep-origin'}!}{!{/types}!}</b></li>
</ul></div>
	</div>
</div>
</div>
</div>

I can see now it generates the correct output without adding any JS code and resolves all your issues.
=> hidden link

Can you please confirm it works at your end as well as expected.

#2288697

pjF

My issue is resolved now. This is great! Thank you so much for this fix. I don't know if I would have thought to try this. Happy customer of Toolset!