The view counter in custom templates does not work

When changing the listing template, the modal window warning about paid viewing does not work.

At the same time, this function works on the listing card.

Everything also works when using a standard template

All on video iCloud

Hi,

Please provide more details. Your step-by-step action (which template is used, how to make changes, etc.). Also, please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.

I tried to show everything on video, let’s do it again

I use the Jobs theme

It is connected to a multisite

A theme clone has been created using the Child Theme Wizard plugin

All updates are made

What’s going on

  1. Creating a Listing template in the wp-admin/edit.php section? Post_type=hp_template

  2. Choosing a template for editing “Listing”

  3. I create a template with the elements I need on the listing page

  4. I create a membership plan with a limit on the number of attribute views

  5. I get broken Reveal links that work on a standard template

Below is the template code

<!-- wp:hivepress/listing-title /-->

<!-- wp:hivepress/listing-rating /-->

<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"width":"79%"} -->
<div class="wp-block-column" style="flex-basis:79%"><!-- wp:hivepress/page-topbar /-->

<!-- wp:hivepress/listing-description /-->

<!-- wp:hivepress/listing-attributes-secondary /--></div>
<!-- /wp:column -->

<!-- wp:column {"width":"30%"} -->
<div class="wp-block-column" style="flex-basis:30%"><!-- wp:heading {"level":5,"className":"content-title"} -->
<h5 class="wp-block-heading content-title">Детали предложения</h5>
<!-- /wp:heading -->

<!-- wp:hivepress/listing-attributes-primary {"columns":"1"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

<!-- wp:columns {"verticalAlignment":"top"} -->
<div class="wp-block-columns are-vertically-aligned-top"><!-- wp:column {"verticalAlignment":"top","width":"100%"} -->
<div class="wp-block-column is-vertically-aligned-top" style="flex-basis:100%"><!-- wp:heading {"className":"content-title"} -->
<h2 class="wp-block-heading content-title" id="reviews">Отзывы</h2>
<!-- /wp:heading -->

<!-- wp:hivepress/listing-reviews {"columns":"1"} /-->

<!-- wp:heading {"className":"content-title"} -->
<h2 class="wp-block-heading content-title">Похожие предложения</h2>
<!-- /wp:heading -->

<!-- wp:hivepress/related-listings {"columns":"1","number":"3","order":"random"} /--></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->

Thanks for reporting this, the bug is confirmed and we’ll fix it as soon as possible.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.