Retrieve a custom form field modified by a filter

I figured out how to proceed. I created a text file with the desired select options and just replaced the input field from the template with the bellow code. <?php $file_path=”FILE_PATH_HERE”; // path to the file with select options if ( !file_exists( $file_path ) ) { echo ‘<input type=”text” name=”location” placeholder=”‘ . __(“Location …”, “custom-settings”) … Read more

Theme Dev | Convert Template to Theme

If you mean you want a widget to control content dynamically from the admin panel, then you can use the Advanced Custom Fields plugin by Elliot Condon to create custom dynamic content and retrieve it every place all over the website. After installing the plugin, simply create fields in the plugin page and get the … Read more

Creating page-templates directory breaks everything!

When a page is assigned to a template, this template selection is saved in the post meta table under the key _wp_page_template. These template values are as follow default if no page template in explicitely set {$template}.php for templates in root subfolder/{$template}.php for templates in a subfolder where subfolder should be the name of the … Read more

WP plugin calls for custom pages

You don’t have to “include” plugins. Plugins operate, or should operate, by means of the extensive “hook” system built into WordPress core. Once activated, a plugin should not require much else (with a few exceptions for very complicated plugins). What you need to do is make sure that you are using the appropriate Core functions … Read more