How to pull date/time in french format for wordpress post?

You need to alter the format of the date/time based on language. This is done by altering the parameters in the_time function. See below for change options. Put the code into the if statement (as an example): <?php if(ICL_LANGUAGE_CODE==’en’){ ?> Last updated <?php the_modified_time(‘F j, Y’); ?> at <?php }else{ ?> Mis à jour le … Read more

Return author name as a tag using get_author

<!–?php the_author(); ?–> is an HTML comment. Means it won’t fire the PHP inside it. As you already found out it should be <?php the_author(); ?> when placed in an PHP template file inside a so called The Loop. Which you are already doing right. Now there’s WordPress’ Template Hierarchy. Means you need to place … Read more

How do I wrap this?

If pc-pvt-content supports nested shortcodes, then I think you could wrap the_aiovg_player() inside a custom shortcode. Something like this, // In your theme functions.php if ( ! shortcode_exists( ‘the_aiovg_player’ ) && function_exists( ‘the_aiovg_player’ ) ) { function myprefix_the_aiovg_player_shortocode( $atts ) { $id = ( ! empty( $atts[‘id’] ) && is_numeric( $atts[‘id’] ) ) ? intval( … Read more

WordPress filter from custom table is not working properly

First of all, you should never build SQL queries like you do – concatenating SQL with raw variables is insecure and it causes SQL Injection vulnerabilities. You should always prepare all queries. As for the main part of question… You use AND operator in your query, so it will retrieve only rows, that will satisfy … Read more