• Resolved mcaravaglia

    (@mcaravaglia)


    I’m trying a simple function in the Free version to see if this is something I should purchase. I have added a shortcode to filter posts by date. There are really no selectable options in the settings of the free version, so I am only seeing an “After” and “Before” (I wish this said “From” and “To”) field to enter filtering criteria. So far, so good. However, when I filter for one full month, it only shows the posts for about half of the month. The pagination also always shows an extra page and if you go to that last page, you get a “page not found error”.

    For example, if you enter “After” July 1, 2019 and “Before” August 1, 2019 the results shows two pages. Page two shows a “page not found” error and page one shows 8 posts ranging from July 1 through July 17, however, there are actually 6 more posts in July that are not appearing. The other very odd thing is in the last row of the found set, there are only two columns and the posts are stretching to fill the width. I realize there are only two posts at the bottom, but the column grid should remain intact as a 4-column grid.

    Please ignore the list of years/months above your filter placement. This is a development site and I have been trying to create filters as a list with PHP and Javascript. I would prefer to have the functionality of your plugin, rather than a list, so if I can get Filter Everything to work, I will use it and remove my code.

    Not sure if these issues would exist in the paid version, but I cannot proceed with a purchase until I know I can accurately filter posts by date.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @mcaravaglia

    1) You can modify it with the templates overriding (after/before text) – https://filtereverything.pro/resources/templates-overriding/ the date.php template.

    2) This is the issue with pagination and template, our plugin does not apply any changes to your template to change its styles if there are fewer than 9 items like 7 or 8, and so on.

    We’d recommend going to the database and checking all posts by “post date” in that one month to be sure 100% everything is correct or wrong.

    Best Regards – Victor

    Thread Starter mcaravaglia

    (@mcaravaglia)

    Victor, thank you for your reply. I was able to edit the date.php file to change the “Before” and “After” labels. I was also able to fix the width of the columns when there is fewer than 4 posts in the last row, by setting a Maximum width to the column.

    The issue remains, however, that executing the filter for any year/month combination only finds some of the posts and not all of the posts for the selected combination. I am perplexed by this. Searching from January 1, 2024 To February 1, 2024 only finds 4 posts, yet there is a total of 12 posts in the month of January 2024. If I can resolve this, I want to purchase the product. It is perfect for what I need, if only I can make it find all of the posts in the selected search.

    Plugin Support fesupportteam

    (@fesupportteam)

    Hi @mcaravaglia

    Have you checked the database as we previously mentioned? To be sure that there really are 12 or more posts related to that time period?

    Also, are they all posted? Or some of them are drafts or private? This will not show them by filtering if they are in any of those statuses.

    Best Regards – Victor

    Thread Starter mcaravaglia

    (@mcaravaglia)

    Hello Victor. I really do not need to look at the database, as all of the posts are clearly visible when scrolling the pages on the front-end for the same time period. This situation is not only for a single year/month, but is the same for any search initiated with your filter. Any year/month criteria I enter only reveals some, but not all of the posts.

    Plugin Support fesupportteam

    (@fesupportteam)

    Hi?@mcaravaglia

    In that case, unfortunately, there is not much we can do to help you. As we do not have any information on our hands.

    You can try to recreate this on any local server with a clean WP installation and default theme. Then simply create some posts today, and tomorrow and test filtering by date to see if everything is displaying correctly.

    Best Regards – Victor

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.