Pick your brain on wp-config.php if statement for multisite
Your best bet would be to match $_SERVER[‘HTTP_HOST’] variable against desired host. Unfortunately wordpress init WP_DEBUG constant before multisite functions are loaded.
Your best bet would be to match $_SERVER[‘HTTP_HOST’] variable against desired host. Unfortunately wordpress init WP_DEBUG constant before multisite functions are loaded.
Automatic add record after refreshing page
add_action not working in header?
When multisite is on you have to be careful with your hosting. For example if you want a subdomain installation be sure your webhosting is ready for that because wildcards are necessary (~ subdomain such as *.yourdomain.com). In your case, everything is focused on users. To me you’d better use buddypress because it’s a great … Read more
While inserting js directly in header.phpcan work it’s not recommanded to do that. You’d better add your scripts to the WordPress queue: function wpse_109879_insert_hyphenator() { wp_register_script(‘hyphenator’, ‘https://raw.github.com/bramstein/hypher/master/dist/jquery.hypher.js’, array(‘jquery’), null , false); wp_enqueue_script(‘hyphenator’); } add_action(‘wp_enqueue_scripts’,’wpse_109879_insert_hyphenator’); Regarding CSS you probably use the wrong class, you can try .single-post or .single EDIT: I see you use raw script. … Read more
Why don’t you just use the native WordPress Menus.. Go to Appearance > Menus. Then in your screen options, enable your custom post type (products). It’ll appear in the left hand side. Select all of your products you want in the menu, then you can customize the titles, and also add classes if you need … Read more
First you should update your WordPress to 3.6. And then after that, make sure that the post is actually “published”, and visible to the public. If a post get’s set to “private” it won’t display unless a user with permission to alter the post is logged in. It’s a hard problem to diagnose without seeing … Read more
You shouldn’t edit that file. You should over-ride it. Create a folder called ‘buddypress’ in the root of your theme folder. Place a copy of post-form.php in that folder – using the same dir structure as bp-templates/bp-legacy/buddypress/ Then you can update buddypress without losing your changes.
Adding result from PHP function into an input field
You can pass in HTML formatting within custom excerpts and output it via the_excerpt() or get_the_excerpt() in your template files. Check your template files for additional custom filters added to the_excerpt() or get_the_excerpt() if the HTML formatting is removed anyway.