Hello. In my news site, the top main element and several smaller elements are single slide blocks. When I select from a specific category in the filters, everything works fine. But when I put a specific post ID to show, then the block doesn’t render at all.
Can you help?
Thanks
Hello,
It probably means that the post id is incorrect or you are inserting it in the wrong place. Please read this guide: https://forum.tagdiv.com/block-settings-guide/
Thank you!
Please walk with me through the steps, and try to point me to the mistake.
Here’s what i do.
1. I have a plugin to show the IDS of the posts. Here’s a list. Let’s take the first one.

2. This is the homepage layout. There are single slide blocks in at least 2 places as you can see.

3. Let’s pick the first slide block. The behavior is the same for the second one, too.

4. This is the general settings tab. 1 slide only.

5. This is the filters tab. Let’s put the ID of the latest post: 5892. Sort order is set to -Latest-. (Any id I have tried so far gives me the same non-rendering result. The same is true for the sort orders, too).

6. This is the result – the block doesn’t even render!

7. This is what is should look like (this is the result when I pick to show the latest post from a specific category).

8. This is the filters tab of Big Grid 7 block, just below the first slide block, with post IDs. – It works as expected.

Hi
Slide block won’t render if you set the limit post number to 1 as it is here: https://dl.dropboxusercontent.com/u/14103014/tagdiv/s4.png You need at least 2 posts in order to display the slide. If you want to make it work with one post you need to edit td_block_slide.php file and remove this condition: http://screencast.com/t/Glhs9kCW01F
Hope this helps!
Thanks!
Hi again!
Actually, the single slide works well in general, it’s just the specific post id filter that has the issue.
If I remove a single bracket, the page hangs (it doesn’t render anything below header), as expected. Removing both brackets of the ‘if’ condition, doesn’t help either.
But if I change the condition in line 21, from:
if ($this->td_query->have_posts() and $this->td_query->found_posts > 1 ) { ... }
to
if ($this->td_query->have_posts() and $this->td_query->found_posts > 0 ) { ... }
then the condition (with just 1 post id) is met and my problem solved!
Thanks for pointing me to the right direction. Please consider correcting this bug on the next release, it’s such an easy fix after all, and it’ll be good usability-wise 🙂
Hi.
If it’s not a bug but a feature, then you need to fix consistency with the other filters. Because if you limit the post showed to 1, and choose another filter (e.g. category filter), then the 1 slide block renders normally with just one slide (which shouldn’t, according to the default design you mention).
Then if you do that, it would be useful to not allow the users putting value number 1 in the posts limit field of the said block, to protect them from making mistakes and scratching their heads if things don’t go as expected. Or you can also add this special instruction to the documentation page you directed me in your first answer.
But well, all this is so counter-intuitive. And what’s the point in making the user’s life harder than easier?
If the user chooses to show just 1 slide in the posts limit, then maybe there is a hidden need underneath, and perhaps they believe they can achieve the expected result with what they have.
Maybe there is a lack of a big non-sliding block such as the homepage post, for an important article at the top and maybe a couple important articles in the middle, which can be used multiple times across the page and doesn’t affect the background ads the site may have implemented.
The slide block could easily do the job and double up as Big Single Block and cover this need (and a further improvement would be to disable the display of the next and prev buttons on hover if there is just one slide in the slide block, for whatever the reason).
In any case, why don’t you consider it?
It’s friendly, honest feedback, to make your product even better than it already is.
Hi
Thanks for your feed back, we appreciate any suggestion and each bug or bad functionality reported by customers are taken into consideration! Indeed there is a bit of confusion there because we check only if post founds number is higher then 1 but the post limit value from slide settings is not checked. We will change this implementation in future updates because we try to make the theme as user friendly as possible so users can be happy with it.
Thanks!