Skip Navigation

[Resolved] Sorry Shane I missed something!

This support ticket is created 3 years, 10 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by Shane 3 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#1973851

Sorry Shane, I missed something and only just discovered an issue I mentioned earlier.

I asked: Why is the gallery not using the image gallery from each listing?

You said...

I checked the filters on the view and saw that there isn't a filter that will restrict the view to display only for the current post being viewed. To resolve this you will need to add the Post ID query filter to your view and then set it to "Posts with IDs set by the View shortcode attribute".

Currently it defaults to the attribute ids, this is what you will use to pass the current post id into the view.

Example
1

[wpv-view name='my-view' ids='[wpv-post-id]']

Using the [wpv-post-id] shortcode, you can pass the current post id into the view to let the view filter for only the current post.

---ok

I don't understand this. I'm not using a shortcode I'm using a dynamic widget by Oxygen. Are you saying I need to replace the widget with a shortcode for this to work?

Sorry, I don't understand what I need to to ref the above?

Thanks, Pete

#1973883

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

You won't be able to use the dynamic widget with Oxygen to add the view. You will need to manually add the view to the page using the shortcode.
[wpv-view name='my-view' ids='[wpv-post-id]']

Where my-view is the slug of your view. This is essentially because you need to pass a shortcode parameter into the view which requires the use of the views shortcode.

The dynamic widget will only allow you to select the view but not allow you to pass a shortcode parameter to the view.

Thanks,
Shane

#1973893

Hi Shane,

Blimey, I thought this was finished. Ok added a shortcode as per your suggestion:

[wpv-view name='slider-main-1' ids='[wpv-post-id]

It's not showing the right images unfortunately:
hidden link

Click the MORE PHOTOS button on the right of the main image.

#1973901

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

Can you provide the credentials again? Given that you've marked the previous ticket as resolved the credentials were removed.

Thanks,
Shane

#1973905

Shane I'm seeing your reply for site access on email, but not here.

The messages wont be secure as I can't reply on this ticket???

#1973907

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

Here are the private fields.

#1973935

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

There is an easier way to do this. I just created the content template here
hidden link

Then I just added this content template to the page using this shortcode below.
[wpv-post-body view_template="slider-content-template"]

Why did I use this ?
A. The [wpv-post-body] shortcode will try to render the current content of the page. This means it will use the ID of the current post to get its contents. However we can use this [wpv-post-body] shortcode and render the post body with a content template hence the shortcode [wpv-post-body view_template="slider-content-template"]

Given that this is the case then we can specify how we want the post body to render. In this case I just added the slider information and it rendered the information for the current post.

Everything should be fine now. If you have any questions on this please let me know.

Thanks,
Shane

#1974015

Hi again,

Ok, I'm not understanding totally what you done 🙂

However done a quick check and this isn't working?

hidden link

hidden link

I now don;t know if it's an issue with the change, or that the template isn't doing what it should.

Are you seeing this working your end?

#1974017

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

It should be working now. It seems the content from the content template was removed. I've re-added back the slider code and its now working.

#1974285

Hi Shane,

Ok, thanks for your help further with this.

It worked great! Initially.

There is an issue, only with code that seems to vanish, if that's what you mentioned ref above.

This is the shortcode in the Oxygen Modal on the Template page: [wpv-post-body view_template="slider-content-template"]
That's still there.

I went to see what the Content Template was, just to see what is there...there's nothing.
Sure some CSS & JS.

I can see the template in Edit Content Templates slider-content-template.

There's nothing there, and now the slider isn't working.

Are you adding something to this, when I go and have a look does it vanish, for some reason?

If so this is very temperamental. As it stands the slider isn't working again, yet it was when I checked first thing this morning.

This just never ends! Thanks Pete 🙂

#1974661

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

It is quite odd that the content template goes blank after you have a look at the site. I've re-added the HTML code structure for the content template. This is the code that was added below.

		<div class="flexslider">
  <ul class="slides">
   [wpv-for-each field="wpcf-images"]
  <li>[types field="images" size="full" ][/types]</li>
  [/wpv-for-each]
  </ul>
</div>

Right it seems to be holding the settings. What you can do is to continue to check and let me know what are the exact steps that were taken and when you noticed that the code disappears again as this is not a normal scenario we need to understand why this is happening.

Also I went ahead and edited the oxygen template to see if this knocks out the HTML from the content template but it still doesn't occur.

Thanks,
Shane

#1974675

Hi there Shane,

Checked twice. All I ever did, last night and this morning was just opened the content template in Toolset.

I have to say, the code in there now, I have never seen before, which is even odder why or what makes in vanish.
I'll keep an eye on it.

Can I clarify a couple of things?

The images (slider) function is Toolset? Not Oxygen.
By that I mean the styling of the nav arrows, transition and dot nav that we have hidden?

All Oxygen is doing is displaying a Toolset slider?

Reason, on mobile the arrows being hidden is an issue. I don;t think visitors will know to touch their screen to get arrows.
I hate slideshows on auto settings. While we have disabled this, how do we reactivate it and speed it it?

Many thanks, Pete

#1974697

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

20210304_093311.jpg

Hi Pete,

Lets hope this holds stable for now.

The images (slider) function is Toolset? Not Oxygen.
By that I mean the styling of the nav arrows, transition and dot nav that we have hidden?

That is correct this slider is not from Toolset, it is using the flexslider library and we are passing the images from your custom fields into the slider.

So we don't have any inbuilt control over the nav arrows, transitions etc. For a reference on the flexslider please see the link below.
hidden link

All Oxygen is doing is displaying a Toolset slider?

All oxygen is doing is displaying the content template that has the flexslider html markup and javascript language inside it.

Reason, on mobile the arrows being hidden is an issue. I don;t think visitors will know to touch their screen to get arrows.

The arrows appeared for me without being touched.

However to set the slide to autoslide you will add these attributes to the Javascript that is in the JS editor section.

animation: "slide",
        slideshowSpeed: 7000,
        animationSpeed: 600

Decreasing the numbers will cause it to slide faster. Finally you will need to remove " slideshow: false" from the existing Javasacript.

Thanks,
Shane