Tag Info

Hot answers tagged

6

The user decides To answer your last question first: I tried adding the plugin inside the theme plugin folder [...] What am I doing wrong? You are trying to bundle functionality into a theme. That is the wrong thing in the first place. Themes offer presentation - Plugins offers functionality. Aside from that, functionality should be the users choice. ...


3

Here are some ways how we can view the .php source code for plugins: 1) via wp-admin access: Visit the Plugins page and press the Edit link beneath the plugin name. For example if we want to check out the bbPress source: this link will take us to: /wp-admin/plugin-editor.php?file=bbpress/bbpress.php We can also visit the ...


2

Yes, you can set the WPMU_PLUGIN_DIR constant in the config file of each of the sites (and WPMU_PLUGIN_URL for the url). By default it is defined as: WP_CONTENT_DIR . '/mu-plugins'


2

Shortcodes get replaced when you output the content via the_content() function, or apply the filters hooked to the_content. If you look at raw post data, you will always see the original shortcode placeholder, that is normal and expected.


2

There's no method to bundle a plugin with a theme install. Your best bet would be to check if a plugin is installed using is_plugin_active in your functions.php. If not, display a notice in the admin area directing them to download/install it.


1

If you edit plugin files and cause the plugin to trigger an error, it will deactivate the plugin. It doesn't do any sort of caching of plugin files, not sure where you're getting that info. To reactivate the plugin, you just have to go back to the plugins page and reactivate the plugin. Of course, if you don't fix the error you created, it's not going to ...


1

Unless I am completely misunderstanding what you are trying to do, there is no need to move your site into a sub-folder. The easiest way to do what you want is to simply create your static page in normal html just as you want it to appear. Then add the following code to the very top of your page... <?php /* Template Name: Front Page */ ?> Then ...


1

Try to create a symbolic link within wp-content for each site: ln -s /root/mu-plugins mu-plugins


1

When working with shortcode you must return a value rather than output directly. The below amendmetn should fix your positioning issue. For more informaiont, see the Shortcode API Codex, speciffically the Output section. function multipage_form() { global $wpdb; $this_page = $_SERVER['REQUEST_URI']; $page = $_POST['page']; ...


1

CSS was indeed the issue. It works fine on a stock WP installation and I was finally able to track down the conflict with this developed site.


1

How this line (9th) is created within your theme code? <script type="text/javascript" src="/wp-content/themes/blankslate/js/jquery-1.11.1.min.js"></script> If it is hard-coded in header.php, then I would recommend to remove it. Scripts should be enqueued instead of hard-coding them. Next, you can de-register jquery.migrate script with the ...



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