Tag Info

New answers tagged

0

You could do either pretty easily or you could create a custom post type within your current installation and then you wouldn't have to do either and you would only have one installation to manage.


-1

I would install it as a subdomain. You can then access it by either going to subdomain.mysite.com or mysite.com/subdomain Installation will be the same as installing in the root folder. You would create the subdomain/folder and copy the wordpress files to that.


0

As of WP 3.4 there is a public get_files() method. You can create a WP_Theme instance with the plugin dir set as theme root. // get theme instance of WP_Theme $current_dir = new WP_Theme('my-plugin-dir',WP_PLUGIN_DIR); // get js and css files up to 10 subfolders depth $files = $current_theme->get_files( array('js','css') , 10 ); There isn't very much ...


0

For starters, the WordPress Codex has a wealth of information on this very topic. For the sake of brevity that should take care of most of it; however, there are some relievant points that should be made: If you do not wish WordPress (essentially PHP) to have access to the file system with the exception of dynamic static assets such as images or cache then ...


2

You can use wp_add_inline_style(). Let's assume you enqueue your css like so add_action( 'wp_enqueue_scripts', 'add_my_style' ); function add_my_style() { wp_enqueue_script( 'my_style', get_template_directory_uri() . '/mystyle.css' ); } Then you can change the function like so: function add_my_style() { wp_enqueue_script( 'my_style', ...


0

You can just use a relative path. For example, if your stylesheet is in /wp-content/themes/mytheme/css/mystyles.css and your image is in /wp-content/themes/mytheme/images/nav-divider.png, then your path would be ../images/nav-divider.png.


0

@Helgatheviking, that was an awesome solution. Really helpful. The part that did not quite work for me was the last one. Here's what i did: <?php //GLOSSARY WITH ACTIVE STATES $glossary_terms = get_terms('glossary', 'orderby=name&order=ASC&hide_empty=0'); // get all terms in taxonomy $glossary_current_terms = wp_get_post_terms( $post->ID, ...


0

This turned out to be a setting error on my part. In Network Admin > Sites > Settings for blog /, I had not updated the File uploads URL field. One little variable ....


1

add_filter( 'the_posts', 'wpse138563_add_posts' ); function wpse138563_add_posts( $posts ) { if( ! is_multisite() ) { // if we're not using Multisite, bail return; } if( is_main_site() ) { // if we're in the root site, bail return; } $country = get_bloginfo( 'name' ); // This assumes that the categories ...


1

By default, yes, you will have conflicts. The default WordPress .htaccess rules look something like this: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress The ...



Top 50 recent answers are included