How to translate month names in “Archives”

if the translation is only for the archive widget, a filter function might work (to be added to functions.php of the theme): add_filter(‘get_archives_link’, ‘translate_archive_month’); function translate_archive_month($list) { $patterns = array( ‘/January/’, ‘/February/’, ‘/March/’, ‘/April/’, ‘/May/’, ‘/June/’, ‘/July/’, ‘/August/’, ‘/September/’, ‘/October/’, ‘/November/’, ‘/December/’ ); $replacements = array( ‘jan’, ‘feb’, ‘mar’, ‘apr’, ‘may’, ‘jun’, ‘jul’, ‘aug’, ‘sep’, … Read more

enqueue script on custom post type archive page

You can save your time and server load by not using wp_register_script and wp_register_style when you don’t need them definitely. wp_enqueue_style and wp_enqueue_script do the same job themselves when not involving excessive functions. Here is easier and more readable code up to date with the accepted answer by @vancoder: <?php function opby_theme() { wp_enqueue_script( ‘responsive-img’, … Read more

Is there a way to create invisible pages?

Hi @mafutrct: There are a lot of ways to do this; picking one is actually the challenge! I’m going to suggest a few options and let you explore (the ones at the top look most promising): Page Protection Plugin Password Protect enhancement Plugin Better Protected Pages Simply Exclude Plugin (Article) Hide Pages Plugin Creating ‘hidden’ … Read more

Page load requires a trailing “/” [closed]

sounds like a .htaccess issue use a standard theme – still got the error? yes –> investigate your .htaccess file in the root of your site is the rewrite module loaded –> check with phpinfo() on your local server no –> investigate a .htaccess file within the template directory in both cases: check the rewrite … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)