The Big Spring Sale! Up to 50% off!

Post Carousel Filter

jack.from.canada
118 Posts
jack.from.canada posted this 20 April 2024
Ask a Question

Post Carousel creation doesn't work if there are no posts matching the requested category or tag

In designing a WordPress website using Nicepage, I have made provision on a page to display a specific subset of posts in a post carousel block. My goal was to have the block be visible only when there are matching posts to be displayed, and for the block not to appear when there are no matching posts.

Unfortunately, when defining the post carousel, I am prompted for the tag name or category name for filtering. I have provided correct, existing names for the category or tag. However, Nicepage will not save the filter criteria if there are not already existing posts that satisfy that criteria. I believe this is a design flaw, since designers will often create templates for pages before the eventual content is created. I should be able to specify a filter condition that will eventually exist (or not).

Edit: I should clarify that I am using the Nicepage plugin to edit an existing page design within the WordPress page editor. I have not tried to define a post carousel in the Nicepage desktop environment, since I am trying to update a live site and don't want to regenerate the site from the Nicepage theme and initial content.

Post Carousel creation doesn't work if there are no posts matching the requested category or tag In designing a WordPress website using Nicepage, I have made provision on a page to display a specific subset of posts in a post carousel block. My goal was to have the block be visible only when there are matching posts to be displayed, and for the block not to appear when there are no matching posts. Unfortunately, when defining the post carousel, I am prompted for the tag name or category name for filtering. I have provided correct, existing names for the category or tag. However, Nicepage will not save the filter criteria if there are not already existing posts that satisfy that criteria. I believe this is a design flaw, since designers will often create templates for pages before the eventual content is created. I should be able to specify a filter condition that will eventually exist (or not). Edit: I should clarify that I am using the Nicepage plugin to edit an existing page design within the WordPress page editor. I have not tried to define a post carousel in the Nicepage desktop environment, since I am trying to update a live site and don't want to regenerate the site from the Nicepage theme and initial content.

Last edited 4 weeks ago by Support Team

Vote to pay developers attention to this features or issue.
6 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 5 weeks ago

Hi, Jack,

When you select the category or tag filter option for the Blog Posts Element, posts are not displayed if a category or tag does not exist or there is no actual content in a specified category or tag. There will be just empty space on a page in this case.

Could you please specify in detail what exactly you want to achieve? Thank you.
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Jack, When you select the category or tag filter option for the Blog Posts Element, posts are not displayed if a category or tag does not exist or there is no actual content in a specified category or tag. There will be just empty space on a page in this case. Could you please specify in detail what exactly you want to achieve? Thank you. ................................................... Sincerely, Paul C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
jack.from.canada
118 Posts
jack.from.canada posted this 4 weeks ago

What I want to achieve is exactly what you described. However, when trying to use the Nicepage PLUGIN to add a post carousel block to an existing page using the "Edit with Nicepage" capability within WordPress, I cannot SAVE the definition, because at the time of defining the carousel, there are no existing posts with the associated tag / category. I am attaching a series of screen captures from the edit session, showing you the error I receive when trying to define the block.

Edit: When I try to define the post carousel using a tag that DOES have corresponding posts, the process works correctly.

What I want to achieve is exactly what you described. However, when trying to use the Nicepage PLUGIN to add a post carousel block to an existing page using the "Edit with Nicepage" capability within WordPress, I cannot SAVE the definition, because at the time of defining the carousel, there are no existing posts with the associated tag / category. I am attaching a series of screen captures from the edit session, showing you the error I receive when trying to define the block. Edit: When I try to define the post carousel using a tag that DOES have corresponding posts, the process works correctly.

Last edited 4 weeks ago by jack.from.canada

Support Team
Support Team posted this 4 weeks ago

Hi, Jack,

Thanks for the provided screenshots!

As I see, you want to create some dynamic Post Carousel that appears automatically when you add posts to the specified tag, and you want to save a tag without posts so you would not enter it again when posts are created.

Unfortunately, Nicepage cannot save such categories, and the Blog Posts Element displays the default post filter in such cases.

Let us know if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Jack, Thanks for the provided screenshots! As I see, you want to create some dynamic Post Carousel that appears automatically when you add posts to the specified tag, and you want to save a tag without posts so you would not enter it again when posts are created. Unfortunately, Nicepage cannot save such categories, and the Blog Posts Element displays the default post filter in such cases. Let us know if you need our further help! ................................................... Sincerely, Paul C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
jack.from.canada
118 Posts
jack.from.canada posted this 4 weeks ago

Paul,

This is a BUG. The decision about whether to display the block should be taken at RUNTIME, not at DESIGN TIME. So, for example, if I create a carousel for a tag that does have corresponding posts (which I am able to do at the moment), what will happen if I change the tag on those posts, or remove those posts? Will the carousel then stop working and revert to showing all posts (the default behavior)?

WordPress allows users to save tags independent of posts. The whole idea of WordPress is to be able to select from available tags (or create tags on the fly) as you are creating posts. So, having predefined tags with no corresponding posts is quite common. Your carousel should verify the existence of a TAG or CATEGORY as a condition for saving the block. It should NOT be checking if there are existing POSTS that use those categories or tags until run time.

I cannot test this, but what would have happened if I had added a post carousel defined to display ALL POSTS (default behavior) at a time when no posts at all were in the system. Would your program have failed to save the carousel because there were no posts yet?

Paul, This is a BUG. The decision about whether to display the block should be taken at RUNTIME, not at DESIGN TIME. So, for example, if I create a carousel for a tag that does have corresponding posts (which I am able to do at the moment), what will happen if I change the tag on those posts, or remove those posts? Will the carousel then stop working and revert to showing all posts (the default behavior)? WordPress allows users to save tags independent of posts. The whole idea of WordPress is to be able to select from available tags (or create tags on the fly) as you are creating posts. So, having predefined tags with no corresponding posts is quite common. Your carousel should verify the **existence** of a TAG or CATEGORY as a condition for saving the block. It should NOT be checking if there are existing POSTS that use those categories or tags until run time. I cannot test this, but what would have happened if I had added a post carousel defined to display ALL POSTS (default behavior) at a time when no posts at all were in the system. Would your program have failed to save the carousel because there were no posts yet?

Last edited 4 weeks ago by jack.from.canada

Support Team
Support Team posted this 4 weeks ago

Hi, Jack,

We will ask our developers about this behavior. When we get an answer from them, we will let you know.

Let us know if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Jack, We will ask our developers about this behavior. When we get an answer from them, we will let you know. Let us know if you need our further help! ................................................... Sincerely, Paul C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
Support Team
Support Team posted this 4 weeks ago

Hi, Jack,

This is normal behavior for our Blog Posts Element, but we will add your suggestion to our wishlist.

Feel free to contact us if you need our further help!
...................................................
Sincerely,
Paul C.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hi, Jack, This is normal behavior for our Blog Posts Element, but we will add your suggestion to our wishlist. Feel free to contact us if you need our further help! ................................................... Sincerely, Paul C. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments