Smart "Tags" Not allowing for Dynamically Generated feed

Posted in: Newspaper
Post count: 11

Our website: WDWThemeParks.com is using the Newspaper theme with a bit of customization. We have developed a tagging system where a post that’s tagged to a particular page will show up in that page’s news feed.

For example, our page for the Disney attraction: Star Wars: Rise of the Resistance is located here:
https://wdwthemeparks.com/attraction/star-wars-rise-of-the-resistance/

On the sidebar it shows the most recent posts tagged to this page and you can click through to “Read More” where it will bring up the full feed of posts tagged to this page:
https://wdwthemeparks.com/all/?pid=11247

The problem occurs when I want to view the second page of posts. If you hit the right arrow at the bottom of the feed it will bring up new posts, but those new posts are for the entire website and are not unique to the tagged page’s URL.

Any insight you can provide would be appreciated.

  • This topic was modified 6 years by tgrassey.
Post count: 11

Some additional information. The last post on page one has a date of 8/29/2019. The following post should appear on page 2 (dated 8/27/2019) if this was working as intended:
https://wdwthemeparks.com/additional-details-on-star-wars-rise-of-the-resistance/

Post count: 35449

Hi,

I think that you are referring to this buttons -> https://i.imgur.com/06iEYSi.png these will display the next post publish, it will not be from the same category, this option was added only in latest version of Newspaper X and it can be set using tagDiv Composer on single post template from tagDiv Cloud Library.

What you can do is to make some tests on local host or sub-domain with the last version of theme.

Thank you!

Post count: 11

That’s not quite what I’m asking about. Here are more details:

1. Go to https://wdwthemeparks.com/attraction/star-wars-rise-of-the-resistance/
2. On the RIGHT SIDEBAR, under the Latest Updates section, click Read More. https://imgur.com/a/xEBubFq
3. That should bring you to https://wdwthemeparks.com/all/?pid=11247 .
4. On THIS page (https://wdwthemeparks.com/all/?pid=11247; the page referenced in step 3) at the bottom are left/right arrows. https://imgur.com/a/GreJ6bc
5. Click the right arrow and it loads a new set of data, but this data is unrelated to the topic like the first page was, and also skips a whole lot in the date range (the last post on the first page was dated 8/29/2019 and the first post on the second page is dated 6/17/2020.

Post count: 35449

Hi,

The https://wdwthemeparks.com/all/?pid=11247 is a page that has set a block (block 12) and this has set next, prev buttons in filter tab. What you need to do is to set the filter and sort for that block in page https://wdwthemeparks.com/all/?pid=11247.

Thank you!

Post count: 11

Understood that much, but all of our content is not set up for that. Is there any way to change the ajax or anything else? The first page of results is proper, it’s the subsequent pages that are not which seems to me that our original “filter” is lost in the ajax calls perhaps?

Post count: 11

In addition to the response I posted above, I wanted to add that this is dynamic per page and we have A LOT of pages. So that sidebar item, and thus the subsequent data shown on the “Read More” page, needs to be dynamic based on whatever page the user was on previously. I don’t think setting a filter/tag on the block will work because we don’t always want the same tag or filter as it will change based on what page the user was on.

Post count: 35449

Hi,

So you have set on the “Read More” button a custom link that is taking you to a custom page where you have set a block 12, this block must be filter in some ways (normal will be to display one or more categories and the post to be sort after latest => https://i.imgur.com/rhmn9fI.png or you can have all the categories filtered by latest), also the user can get on that page only if is clicking on that button.
Now If I understand correctly you have some more pages that has this type of button that are redirection to a custom page, unfortunately there is no general option that can do what you need, the only this is to manually edit these pages and set the filters and the sort on each one to obtain the results you need.
If I’m right is just like you was building pages for categories.

Thank you for your understanding!

Post count: 11

Thanks but that’s just not an option.

Can you tell me where I can find the Ajax code or whatever code is controlling the next button? Even when we change the block to infinite load it pulls in the same wrong data on the second and subsequent loads. It seems as if the pid on the URL is lost after the initial load of the page.

  • This reply was modified 6 years by tgrassey.
Post count: 35449

Hi tgrassey,

Pressing the next buttons should display the posts from the category that you have filtered or from all categories, this is the way that was build to work.
If this is not working like this, please make sure that you do not have a plugin conflict, please deactivate ALL plugins except tagDiv Composer, also if you are using child theme or cache plugin, deactivate them, clear all cache and try again.

Also I see that you are using Newspaper v8.8 and now the last version is Newspaper v10.3.5 unfortunately I do not have that version and the files with code for Ajax next prev code is in a different pace with a different structure in last version. now the file path is wp-content/plugins/td-composer/legacy/common/wp_booster/td_block.php I think that in version you are usin will be something like this wp-content/themes/Newspaper/common/wp_booster/td_block.php -> https://i.imgur.com/Vm4mhCj.png

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.