It’s possible to create templates for pages with that: <?php /* Template Name: Contact */ ?> This templates are located on the theme folder, right? Is possible to change...
I recall seeing this as a feature of a WordPress Development Framework, so I know it’s possible (can’t remember the framework). I am interested in how to condense the...
I’m currently moving an old website based on some other CMS towards a new server, with WordPress. However, the site ranks good on Google, and I’m have to keep...
Is there a function that would return the equivalent of plugin_dir_path but it being agnostic of a plugin / theme? JS scripts need to be enqueued as resources, as...
I am working on a plugin that constructs a newsletter witch uses a template with a few images. The images have been uploaded using the Media Library (uploads/current_year/current_month/) and...
Conceptually what I want to do is super simple. In my plugin, I want to add a single path/route to my wordpress site: [mysiteurl]/testpath … that loads a particular...
I’m working on a WordPress project, starting from Mark Jaquith’s WordPress-Skeleton repository, using MAMP. I cloned the repo, updated the WordPress submodule, created a database and updated the local-config.php...
In a question that is related to, but not the same as, How to link to images in my plugin regardless of the plugin folder’s name plugin-folder/plugin-main-file.php plugin-folder/images/ containing...
This is what in my wp-config.php : if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . "https://wordpress.stackexchange.com/"); I am calling from plugin/pluginName directory to : require_once( ABSPATH . 'wp-includes/user.php'); But it...
I have a processForm.php in theme directory that does what it says. I am trying to include a file (which i need in order to run a specific function...