dinotoyblog
Forum Replies Created
-
You’ve solved it! My archive.php code was missing the get_the_archive_description() for the different custom taxonomies.
I’ve added that and now the shortcode works. Thank you so much for helping get to the bottom of it, I really appreciate it.
Edit: yes, I’m adding the code into the description field. It works with the help of the Visual Term Description Editor plugin, which stops the code from being stripped.
- This reply was modified 9 months, 2 weeks ago by dinotoyblog.
- This reply was modified 9 months, 2 weeks ago by dinotoyblog.
Oh, and I also use the plugin ‘Visual Term Description Editor’ to “Replace the plain-text term (category, tag) description editor with a WYSIWYG visual editor.”
Here’s the modified theme code I use in archive.php
<?php if (is_tax( 'other-category' )) : ?> <h1><?php _e( 'Type:', 'basic' ); ?> <?php single_term_title(''); ?></h1> <?php elseif (is_tax( 'classification' )) : ?> <h1><?php _e( 'Classification:', 'basic' ); ?> <?php single_term_title(''); ?></h1> <?php elseif (is_category()) : ?> <h1><?php _e( 'Brand:', 'basic' ); ?> <?php single_cat_title(''); ?></h1> <?php if ( $not_paged ) echo '<div class="archive-desc">'. category_description() .'</div>'; ?> <?php elseif( is_tag() ) : ?> <h1><?php _e( 'All', 'basic' ); ?> <em><?php single_tag_title(); ?></em> Reviews</h1> <?php if ( $not_paged ) echo '<div class="archive-desc">'. tag_description() .'</div>'; ?> <?php elseif (is_day()) : ?> <h1><?php _e( 'Day archives:', 'basic' ); ?> <?php the_time('F jS, Y'); ?></h1> <?php elseif (is_month()) : ?> <h1><?php _e( 'Monthly archives:', 'basic' ); ?> <?php the_time('F, Y'); ?></h1> <?php elseif (is_year()) : ?> <h1><?php _e( 'Year archives:', 'basic' ); ?> <?php the_time('Y'); ?></h1> <?php elseif (is_author()) : ?> <h1><?php _e( 'Author:', 'basic' ); ?> <?php the_author(); ?></h1> <div class="archive-desc"><?php the_author_meta('description'); ?></div> <h1>All reviews by this author</h1> <?php elseif (isset($_GET['paged']) && !empty($_GET['paged'])) : ?> <h1 class="arhivetitle"><?php _e( 'Archive', 'basic' ); ?></h1> <?php endif; ?>
Hi, I’m using the plugin Simple Taxonomy Refreshed for the custom taxonomies. I use neither page builder or theme editor so I presume this plugin is also responsible for generating the archive pages. I use a child of the theme ‘Basic’ by WP Puzzle.
Hi, thanks so much for investigating. I’ve tested it on a page (https://dinotoyblog.com/explore/) and a post (https://dinotoyblog.com/stegosaurus-boley-by-gosnell/) and it works on both.
I did get the dreaded error message “Updating failed. The response is not a valid JSON response.” when updating the page, but it updated nonetheless, and I think this is a separate issue.
- This reply was modified 9 months, 2 weeks ago by dinotoyblog.
Forum: Plugins
In reply to: [ActivityPub] YASR ratings appear on comments on MastodonThanks for the reply!
It occurred to me, could this problem be related to the code I added to my functions.php to solve a previous issue I had, see: https://www.ads-software.com/support/topic/ratings-on-the-excerpt/
No YASR shortcode there. Just shortcode for the List Category Posts plugin, which shows the grid of images on that page. But the YASR star rating appears even if that shortcode is deleted (and persists even when the List Category Posts plugin is deactivated).
I also notice there’s a YASR button at the top of the “Before Archive List” content input area on the term.php?taxonomy= pages. see Screenshot:
https://dinotoyblog.com/otherimages/screenshot2.png
Clicking this button doesn’t do anything (in Chrome or Safari at least).
Yes, “Use Auto Insert” is enabled.
I have also enabled “Show “Visitor Votes” in Archive Page”.
Disabling either one of these removes the duplicate rating from the top of the archive page, but also removes all the wanted ratings within the archive as well.
Curious. Thanks for looking into it. Do you mean the”edit” button in the screenshot above? That links to the edit-tags.php?taxonomy= section for that taxonomy. There’s no shortcode in the “description” field for the taxonomy.
There is shortcode in the “Content Before List” field for individual tags, but the duplicate YASR rating appears even if I delete that shortcode. If the “Content Before List” field is completely empty then the duplicate rating disappears. But the duplicate appears if there’s any content at all, such as the word “example” without any html or shortcode, see: https://dinotoyblog.com/category/aaa/
Sorry, how about this?
The screenshot above seems not to be appearing so here’s the direct link if required: https://dinotoyblog.com/wp-content/uploads/2023/06/Screenshot-2023-06-23-at-22.38.03.png
Sure. The ‘Content Before List’ setting is what’s causing the duplicate rating to appear.
Forum: Plugins
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] Ratings on the excerptPerfect, this works! Thank you so much for the fast and thorough response. I rate you five stars ??