rexsorgatz
Forum Replies Created
-
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Still Doesn’t Work With Custom TaxonomiesOn that link, there are no assigned posts. But despite that, I want that link to appear in a sitemap.
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Still Doesn’t Work With Custom TaxonomiesA taxonomy (“category”) page need not only contain posts. One can use wordpress to build robust websites with thousands of (non-post) pages using custom taxonomies. Many, many sites do this. Here is one such page:
https://www.tvinsider.com/show/godzilla-x-kong-the-new-empire/
No posts on this particular page, which is technically a term in a custom taxonomy. But lotsa data.
- This reply was modified 1 year, 11 months ago by rexsorgatz.
- This reply was modified 1 year, 11 months ago by rexsorgatz.
- This reply was modified 1 year, 11 months ago by rexsorgatz.
- This reply was modified 1 year, 11 months ago by rexsorgatz.
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Still Doesn’t Work With Custom TaxonomiesSearch engines expect to discover URLs in sitemaps
These are URLs.
not a mirror of the website structure
On the contrary, “a mirror of the website structure” is PRECISELY what sitemap.xml is for.
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Still Doesn’t Work With Custom Taxonomies- It’s a large TV site and there are custom taxonomies for Networks, Shows, and People. Networks doesn’t generate a list. But now that I think about it, the reason that Network are never attached to posts. Which is #2…
- We maintain a database of tens of thousands of tv shows (and celebrities), as taxonomy terms. Some have associated posts, most don’t.
Now that I think about it, I could probably dig around in the query and fix my problem by just adjusting the parameter
hide_emptytofalseon theget_terms()… assuming that’s how it works.Foresee any problems with that?
Ah yes. Double-checked and verified…. Custom posts types, including lists, work just fine in the standard load more. It’s only failing in search.
Not sure what you mean by get the list post to display. Lists are working, yes:
https://www.tvinsider.com/list/horror-tv-shows-all-time-series-halloween/
https://www.tvinsider.com/list/best-2000s-anime-ranked/Not sure what you mean by remove the search parameter. Here it is with nothing: https://www.tvinsider.com/search-test/
Hi, I’ve removed “post” so it’s now just this:
post_type=”list”
…and it’s still returning posts, and no lists. I really have no idea why. exclude_from_search is set to false.
Here’s another query that should be returning a list…
https://www.tvinsider.com/search-test/?searchme=10+Best+Anime
…but is returning posts, even though post_type is set to only lists
Hi @dcooney,
I’m not sure the best way to show this, but here’s a test page:
https://www.tvinsider.com/search-test/
If you search for this…. “40 Best Horror TV Shows of All Time”
…it creates these results:
https://www.tvinsider.com/search-test/?searchme=40+Best+Horror+TV+Shows+of+All+Time
Those are all posts, no custom posts types. This the post (custom post type = list) I am hoping would turn up in that search:
https://www.tvinsider.com/list/horror-tv-shows-all-time-series-halloween/
The headline of that post is 40 Best Horror TV Shows of All Time. It was published a week ago, so it should be the first or second result.
It’s a custom post type “List.” As you’ll see, post_type=”post, list” is set in the ajax_load_more command.
Not sure that helps…
Forum: Plugins
In reply to: [Publish To Apple News] Blocking a ShortcodeFor anyone else who stumbles across this, this is what eventually worked:
add_action( 'apple_news_exporter_content_pre', 'disable_myshortcodes');
function disable_myshortcodes($content) {
$content = strip_shortcodes($content);
return $content;
}It removes all shortcodes, not a specific one, but that was fine for my scenario.
Forum: Plugins
In reply to: [Publish To Apple News] Blocking a ShortcodeHi, surfacing this for @kevinfodness, in case you missed it, as it was submitted over the weekend. (Does tagging people in here do anything? I guess we’re about to find out.)
Forum: Plugins
In reply to: [AMP] Retrieving Script Embeds Before Rendering ContentLike a whole new custom plugin? I can’t just implement via functions.php?
Forum: Plugins
In reply to: [AMP] Incorrect Time StampNo offense, but you sorta restated my original post. I know where the code is located…
I don’t understand why the timestamp is off only on AMP. Is the solution really just “subtract four hours on AMP”? It seems like there should be some explanation for the discrepancy.
Forum: Plugins
In reply to: [AMP] Incorrect Time StampYes, I was able to verify, the time stamp is correct in troubleshooting mode.
Forum: Plugins
In reply to: [AMP] Incorrect Time StampHm, yes, the dates are correct… But my problem is a four-hour time difference, which wouldn’t show up in a default theme, because it only shows the date, not the time.
Did that answer your question?