I have been using Simple Taxonomy Refreshed plugin for some time. After the most recent WordPress update (to version 6.7) I am not able to show my custom taxonomy (fe-quthor) on pages made with a custom template.
I tried de-activating and activating the plugin without success.
I also tried re-loading a previous version of my theme, also no improvement.
To see an example of the fe-author custom taxonomy in use, please refer to the following page, which will display the “by” line for the story…
https://www.fifthestate.org/archive/102-april-2-15-1970/masthead/
I will appreciate any and all help with this problem.
Robby Barnes
]]>however it doesn’t show up in Google. see this link. in google the ct_coupon_store doesn’t show up. see screenshot
when we see source code of the page it shows the coupon store name. see screenshot
Please look into this. Thanks
]]>wpseo_primary_term_taxonomies
filter, but it has no effect. When I output the $all_taxonomies
parameter inside the filter to debug, it only shows the category
taxonomy; it seems that none of my registered taxonomies are available to this filter and so can’t be added as options for the primary term. Any idea why this might be happening?
]]>i’ve created a custom taxonomy and i show the taxonomy inside the pods list and single post, but i can’t connect the taxonomy with a url to show all the posts that are part of it.
Thanks
]]>Can I do this with this plugin?
However, if I set up a CPT to remove a visibility in, for example, 15 minutes and then check on that CPT in 20-30 minutes, the custom taxonomy is removed successfully.
I have WP_Cron turned off for my website, and instead have a cronjob running every 10 minutes on my server calling WordPress’s cron. I have low traffic to my website, so this allows all the WP Cron jobs to run whether or not people are visiting my site.
Is this issue because of my cron setup? My understanding is that the cronjob on my server should trigger all events queued by WP Cron. Is that not the case?
(Side note: I have this same issue with PublishPress Revisions)
Thanks for any insights you have.
]]>There are hundreds of artists under the above taxonomy, so I decided to create a widget area on the taxonomy-artists.php template to put the Display Posts query parameters in a Custom HTML widget for each archive’s use.
This is my code:
<div id="track-and-album-rev" class="track-and-album-revs">
<h1>Album reviews</h1>
[display-posts taxonomy="artists" tax_term="current" tag="album-reviews" tax_relation="AND" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
<!-- /wp:shortcode -->
<h1>Track reviews</h1>
[display-posts taxonomy="artists" tax_term="current" tag="track-reviews" tax_relation="AND" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
<!-- /wp:shortcode --></div>
However, this does not query only the posts with the current tax_term (e.g., /artists/black-hibiscus) that also have the given tag. Instead, it outputs all posts with the tag “album-reviews” and “track-reviews“, disregarding the taxonomy and tax_term rules.
Any advice is greatly appreciated.
]]>To achieve this, I use the following code:
Album reviews
[display-posts taxonomy="artists" tax_term="black-hibiscus" category="album-reviews" tag="album-reviews" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
Track reviews
[display-posts taxonomy="artists" tax_term="black-hibiscus" category="track-reviews" tag="track-reviews" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
However, this results in all posts categorized/tagged as “album reviews” and “track-reviews” being shown respectively, seemingly disregarding the specified custom taxonomy and term.
I have tried removing category="album-reviews" tag="album-reviews"
and category="track-reviews" tag="track-reviews"
and ended up with all posts being displayed, still disregarding the taxonomy="artists" tax_term="black-hibiscus"
rule.
I have also tried writing the code this way:
Album reviews
[display-posts taxonomy="category" tax_term="album-reviews" taxonomy_2="post_tag" tax_2_term="album-reviews" taxonomy_3="artists" tax_3_term="black-hibiscus" tax_relation="AND" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
Track reviews
[display-posts taxonomy="category" tax_term="track-reviews" taxonomy_2="post_tag" tax_2_term="track-reviews" taxonomy_3="artists" tax_3_term="black-hibiscus" tax_relation="AND" posts_per_page="3" image_size="thumbnail" include_author="true" include_date="true" date_format="F j, Y" orderby="date" wrapper="div" wrapper_class="display-posts-listing grid" meta_key="_thumbnail_id]
This does not work either.
Any advice is appreciated.
]]>I intend to do the following:
/*
* Query all posts versions on taxonomy archive page.
*/
function sam_modify_taxonomy_query( $query ) {
if ( function_exists( 'pll__' ) && ! is_admin() && $query->is_tax() ) {
$query->set('tax_query', '');
$query->set('lang', '');
}
}
add_action( 'pre_get_posts', 'sam_modify_taxonomy_query' );
Below is the code I’m using in the file taxonomy-subtopic.php to achieve both, but I end up getting all posts that are assigned any “subtopic” instead of getting only the posts with the current term (e.g., “copyright” or “trademark“) on the archive page.
When readers visit the “copyright” archive page, for example, they should see only posts that have the term; in the main language or the secondary language if a main language version is not available.
<?php if (have_posts()) : ?>
<header class="header-title-wrapper">
xxx
</header><!-- .header-title-wrapper -->
<h2 class="widget-title"><span>All articles</span></h2>
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
query_posts(array(
'post_type' => 'post',
'lang' => 'en-PH', // force querying the PH posts
'showposts' => -1,
'tax_query' => array(
array(
'taxonomy' => 'subtopic',
'field' => 'slug',
'terms' => $term->term_id,
'operator' => 'IN'
)
)
)
); ?>
<?php
/* Start the Loop */
while (have_posts()) : the_post(); ?>
<?php global $post;
if($post_id = pll_get_post($post->ID, pll_current_language())) { // get translated post (in current language) if exists
$post = get_post($post_id);
setup_postdata($post);
}?>
<?php
get_template_part('template-parts/content', get_post_format());
?>
<?php endwhile; ?>
I would appreciate any advice or explanation that may help fix this. Thank you!
]]>