JavaScript and Google PageSpeed + wp_enqueue_script

You can copy this code to a JS file then enqueue that to wordpress . For Ex : Copy codes to scripts.js in js folder , then in functions.php write : function enqueue_scripts() { wp_register_script(‘scripts’, get_template_directory_uri(). ‘/js/scripts.js’,”, ”, true); wp_enqueue_script(‘scripts’); } add_action( ‘wp_enqueue_scripts’,’enqueue_scripts’ );

Post URL duplication adds numerical value

Posts have a slug (that’s the last part of the URL), and it must be distinct, even if posts are in different categories. If your only worry is SEO, don’t worry. Google sees the URLs as distinct, and Google is used to dealing with URLs that have a suffix on them, and has no problems … Read more

Category Name and Slug field need to be the same otherwise it breaks category pages

I can’t comment yet, but I can answer – I think your problem may be that you’ve declared your $terms variable twice in your code, within your loop: <?php $terms = get_the_terms( $post->id, ‘knowledgebase_types’ ); ?> and <?php $terms = get_the_terms( $post->post_id, ‘knowledgebase_topics’ );?> Though some more information about what result you are actually seeing … Read more

Is it possible to use % sign in post permalinks?

Just answering to close out the question, but if anyone has other opinions please chime in. No, it’s not possible to use % signs in post permalinks without some very hackish workarounds. It’s also not advisable given they are used in URLs as special characters. That said, the lack of % symbols in the permalink … Read more

Pretty permalink structure with multiple (AND OR) taxonomies

In general there are the following considerations and choices: Does WP do this already? Best case scenario when use case is reasonably supported by core natively, just configure to that. Are “pretty” permalinks critical or optional? In general GET queries are much more easier to work with, at the cost of being “ugly”. Pretty permalinks … Read more

What is the best practice workflow for new website overhaul and keeping current SEO ranking? [closed]

If you are only changing the theme or plugins, then it shouldn’t make a difference at all. I see no reason to create new posts and/or pages just because you are changing themes. If you are doing a complete site overhaul, however (you don’t specify), then yes, you should add 301 redirects to your .htaccess … Read more

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