WP SITES
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Prevent Worpdress to sanitize taxonomy term namesYou can use the filter with conditional tags or copy over a template file from your parent theme to your child theme. Try a archive.php or index.php file which you can then modify in your child theme folder. You can see the template hierarchy here https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/#category
You still haven’t stated what theme you are using?
Forum: Developing with WordPress
In reply to: Prevent Worpdress to sanitize taxonomy term namesYou can’t do that. You need to use PHP code to filter the title to wrap it in a HTML tag depending on what your theme uses for your archives.
Something like this in your child themes functions file using the correct conditional tag
add_filter( 'get_the_archive_title', function ( $title ) { if ( is_category() ) { $title = '<div class="your-class">' . single_cat_title( '', false ) . '</div>'; } return $title; });Forum: Developing with WordPress
In reply to: Prevent Worpdress to sanitize taxonomy term namesEverything is possible in WordPress however it depends on how your titles are coded in your theme. I assume you’re referring to your archive titles for taxonomies like category and tag archive page titles and i assume you want to add a tag to your titles?
https://developer.ww.wp.xz.cn/reference/functions/get_the_archive_title/
But not all themes use this method.
Forum: Plugins
In reply to: [Guest Author] Function to check if image addedI used this with your key to check if a author has added a image :
get_post_meta( get_the_ID(), 'BS_guest_author_image_id', true );Forum: Plugins
In reply to: [Simple Local Avatars] How To Check If Profile Image AddedResolved. Thanks for a great plugin and support!
I used :
$author_id = get_the_author_meta( 'ID' );Forum: Plugins
In reply to: [Simple Local Avatars] How To Check If Profile Image AddedThanks Darin, its for the author avatar to check if they have a avatar to display on the front end.
That works for single posts & taxonomy archives but not on the home page archive which uses the loop.
$terms = get_the_terms( get_queried_object_ID(), 'category' ); foreach( $terms as $term ) { $background = get_field( 'post_color', $term ); }Forum: Localhost Installs
In reply to: Very Slow Localhost config (Too slow too work)Resolved.
You should code the new version so it still works with your old functions.
And if
wpcr_change_comment_form_defaultsis also yours, what did you replace it with?The reason i ask is if anyone has modified the default functionality of any previous versions of your plugin, their code will no longer work.
Do you have a list of Deprecated Functions and their replacements?
How do i get this in the new version?
wpcr_comment_tut_add_title_to_text( $text, $comment );I’m using the latest version however maybe you have removed functions and filters when you rewrote the plugin using OOP.
Does this function still work? If not, what replaces it?
wpcr_comment_tut_add_title_to_textWhere is it on Github?
How do i access older versions of the plugin and is the latest version backwards compatible?
Forum: Plugins
In reply to: [WP Post Rating] Shortcodes No Longer Work After UpdateResolved.
Forum: Plugins
In reply to: [WP Post Rating] Can I add average rating to specific post dynamicallyTry this
add_filter('widget_text', 'do_shortcode');- This reply was modified 5 years, 6 months ago by WP SITES.