snakedevil88000
Forum Replies Created
-
Forum: Plugins
In reply to: [MAS Videos] Maximum release date 2022 for widgetThanks for the feedback, the solution is ok while waiting for the update ??
Forum: Plugins
In reply to: [PPWP - Password Protect Pages] Show password without ****Thanks, does it work for “Partial Protection” too?
Because it doesn’t work the code, thanks again.
Forum: Plugins
In reply to: [MAS Videos] Link to user profile for reviewIt’s OK i think ^^
I use this functions :
add_filter( 'comment_author', 'my_site_comment_author' ); function my_site_comment_author( $author ) { global $comment; if ( $comment->user_id ) $author = '<a href="' . get_author_posts_url( $comment->user_id ) . '">' . $author . '</a>'; return $author; }
Forum: Plugins
In reply to: [MAS Videos] Get the release dateThanks, great support!
Forum: Plugins
In reply to: [MAS Videos] Get the release dateThanks again!
The code works fine but it displays: 1975-06-20T00:00:00+01:00
How can I get only the year? (1975 here)
Thank you!
Forum: Plugins
In reply to: [MAS Videos] Get the release dateOh thanks !
But how do I add it here?
data-year=”?”
Forum: Plugins
In reply to: [MAS Videos] Get the release dateI found an alternative through this function which is ok for me:
/* Adds date to end of title * @uses Hooked to 'the_title' filter * @args $title(string) - Incoming title * @args $id(int) - The post ID */ function my_add_date_to_title($title, $id) { // Check if we're in the loop or not // This should exclude menu items if ( !is_admin() && in_the_loop() ) { // First get the default date format // Alternatively, you can specify your // own date format instead $date_format = get_option('date_format'); // Now get the date $date = get_the_date($date_format, $id); // Should return a string // Now put our string together and return it // You can of course tweak the markup here if you want $title .= ' (' . $date . ')'; } // Now return the string return $title; } // Hook our function to the 'the_title' filter // Note the last arg: we specify '2' because we want the filter // to pass us both the title AND the ID to our function add_filter('the_title','my_add_date_to_title',10,2);
But how to replace the creation date of the article by the release date of the movie? ^^
Thanks again ?
Forum: Plugins
In reply to: [MAS Videos] Get the release dateThanks !
But does not work with the JustWatch script ??
<div data-jw-widget data-api-key="BurbjmlQxxxxxxxxxxxxxxxxxx" data-object-type="movie" data-title="<?php echo get_the_title(); ?>" data-year="<?php echo masvideos_template_single_movie_release_year(); ?>" data-offer-label="price" data-theme="dark"> </div>
- This reply was modified 2 years, 10 months ago by snakedevil88000.
Forum: Plugins
In reply to: [MAS Videos] Get the release dateI have tried
<?php echo get_the_movie_release_date(); ?>
But it doesn’t work, i would like only the year please ^^
Forum: Plugins
In reply to: [MAS Videos] Import budget, vote average, revenue,…. with tmdb_importCan you tell me how to do it? ^^
Forum: Plugins
In reply to: [MAS Videos] Display the release date on the posterPerfect, thank you again!
Forum: Plugins
In reply to: [MAS Videos] Display the release date on the posterPerfect, thank you!
And finally, how do you remove the year and tag under the poster? (I don’t want to remove it in the movie page only on the movie index).
Thanks ^^
Forum: Plugins
In reply to: [MyEffecto-Instant Emotion Reaction] Backoffice error when plugin loadsHi, same for me…