Hot answers tagged

2

It really just depends on what you need to do here. The general method is to hook all your theme support features to after_setup_theme for some obvious reasons. after_setup_theme is the first action hook available to themes to add any type of support the theme. Certain features has to be registered here and cannot be registered later. One feature that ...


2

@setterGetter is right, you need to wrap it with do_shortcode() but you need to do it where the customizer field is called not inside the field within the customizer. In your case try looking in footer.php then if you're able to find where they output the code wrap it with echo do_shortcode() But that doesn't mean your shortcode will display properly, you ...


2

Create a new theme folder next to your current theme and name it, ThemeName Child Theme In the new child theme folder create a file names style.css In the header of that file add this, /* Theme Name: My Child Theme Theme URI: http://www.example.com/myTheme Description: your Child Theme Author: your name Author URI: ...


1

Your question is totally misdirected and should be directed at core developers on wordpress.org. You are also totally missing the whole point of the core bundled themes. The main purpose of bundled themes are to showcase new developments in core and what the core developers find interesting. They are not there to please the masses with pedantic link colours ...


1

Added a check for a custom post type specific template in theme folder to @Brainternet answer. function load_person_template($template) { global $post; // Is this a "my-custom-post-type" post? if ($post->post_type == "my-custom-post-type"){ //Your plugin path $plugin_path = plugin_dir_path( __FILE__ ); // The name ...


1

You could always set WP_USE_THEMES to false, and handle all the template/display logic on your own. (But, that requires access to the users wp-config or index to set the constant, which is out of scope for a plugin, though you could make it an installation requirement). Taking a look at template-loader.php you could have an starting point to see the kind of ...


1

I you think you need it. For example, you are using the title in a URL and you are getting the title dinamically; so you never know exactly if the title is valid to be used in URL or not. So, it is better to use it. Just one example: it is very common that titles contain white spaces and white spaces need to be enconded to be used in URLs. I would build ...


1

I know that this is an old question... but! there is a nice view count which means that people still need this. Maybe it would also help you close this question ;) Here is an ajax version The page itself the JS code The PHP Ajax receiver and publishing code. Inside your Page Template - this is an example - customize to your theme structure <div ...


1

I'm not entirely certain I understand what you mean but whenever a Page Template is set WordPress also sets postmeta with a specific key and value. The key is called _wp_page_template and the value holds the template location relative to the theme. So you could do this: $pages_with_templates = new WP_Query( array( 'post_type' => 'page', ...


1

Have you tried looking in the Customiser? Located here Appearance > Customise > Logo > Select Image (Select your Companies Logo) Best of luck :)



Only top voted, non community-wiki answers of a minimum length are eligible