How can i create a tag with the template’s name like below, and what is the purpose of using them? [duplicate]

The code you posted is broken but what you are looking at– that “twentythirteen”– is a “text domain” which is used for theme translation. The text domain is a kind of “Key” for locating the right translation data. That is, the first part, ‘Edit’ for example, will be translated based on the “twentythirteen” translation strings. … Read more

How to Register/Link to .js Files in WordPress Dynamicaly in Header.php

We can use wp_enqueue_scripts action to hook js. If it is inside theme folder then, <?php function my_scripts_method() { wp_enqueue_script( ‘custom-script’, get_stylesheet_directory_uri() . ‘/js/custom_script.js’, array( ‘jquery’ ) ); } add_action( ‘wp_enqueue_scripts’, ‘my_scripts_method’ ); ?> // If it’s for plugin,If it’s for plugin, //use plugins_url( ‘/js/newscript.js’ , __FILE__ ) as path. For ref wp_enqueue_script

append links with unique number string

you should probably create a CPT with hierarchical structure like pages and support for categories and tags if needed. Once you have it each story can be a “main” page and each update its child. You might need to decide how to generate RSS and email updates for it if it is required. Another alternative … Read more

Category base 404 – fix

Yes, there is such way. To be precise, there are many ways to accomplish that. You can add ‘Category’ page. Make sure that its slug is set to ‘category’. If you go to example.com/category/ then this page will be shown. If there were no custom changes to rewrite rules, then WordPress will first try to … Read more