Tag Info

Hot answers tagged

4

What you need to do is compare the values of the meta field _wp_page_template, which contains the page template selected for a single page with the available page templates. For this you need to construct an array of used templates, because you want the templates used by all the pages, similar as shown here: Return all custom meta data for one custom ...


3

They're probably referring to the functions file in your theme, functions.php. This file is loaded by WordPress during setup, and gives you an opportunity to do things or register hooks and filters. Note that this file is optional, and not every theme has a functions.php, if that's the case just create one yourself Keep in mind the only thing that's special ...


2

This is how I would do it in a plugin: Install WordPress as a multisite with subdomains. Use the main site for the theme shop, install Easy Digital Downloads or another shop plugin. Create a product for each theme, make sure the slug matches the theme directory name. Upload your themes. Write an empty function wp_install_defaults() to prevent the default ...


1

Solution if submit button disappears and notes: In case you lose the submit button of your form, in addition to Pieter Goosen's answer, you should add those lines to the defaults array parameters list: 'submit_button' => '<input name="%1$s" type="submit" id="%2$s" class="%3$s" value="%4$s" />', 'submit_field' => '<p ...



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