Forum Replies Created

Viewing 15 replies - 676 through 690 (of 1,361 total)
  • … you’re not saving any custom meta fields .. at all, according to that … where’s your add_post_meta, update_post_meta and delete_post_meta ?

    I would need to see the function you use with add_action(‘save_post’, to understand how you are saving it (or not)

    If you could pastebin it please

    @import url("../pinboard/style.css");

    .. might not be exact dependent on the pinboard theme to where the original style.css is or if it’s renamed to something else and what not, or if there are multiple to load, but you put that right after the */ of the header information

    the ../ means go up one directory then down into the pinboard theme directory (or whatever it’s named) and then import that style.css there

    just an fyi, you can edit the slug name for the register_post_type and taxonomies and it won’t break your post_type’s and custom taxonomies

    This being the part where it makes the slug of the array with register_post_type

    'rewrite' => array( 'slug' => 'comic', 'with_front' => true, 'feeds' => true ),

    ^ just rename the slug into the language of your choice and the URL lines etc will all use that slug on the front end

    Wordfence security plugin has a scanner in it that checks all directories and files which can tell you if a hack was added to your filesystem.

    .. in the last few versions of WordPress there was code added to allow networked plugins from within the regular plugin directory; mu-plugins still exists for backwards compatibility for things like I suggested

    Actually that’s not horrible & yeah, the /date/ permalink ones are good ones to use, the 3.234 seconds part shows me that it’s doing *a lot* of processing with that memory

    Did you try to see what it looked like without any plugins loaded?

    … that really depends on what’s happening, need more info .. like is it a custom post type or a regular post type? .. if it’s a custom post type does the code modify anything with the featured image? or is it stock attachment via the registering of the post type?

    Does the theme do the custom post type or is it a plugin? .. narrowing out where it’s doing it is the tricky thing here. Cause need a *lot* more information.

    This will happen if the $post->ID being sent was altered, which yeah would happen in a plugin or if the theme intercepts the admin boxes and coded .. a little wrong -> which could happen quite (and i’ve seen it) with people coding custom post types.

    Just a note, if the $current_site code isn’t working for you, you could just hard code the main site link in there which would undoubtedly be faster ;/

    What I really wanted to point out was that if you added some code to the mu-plugins folder, it will execute for all sites on your multisite.

    Fabien, are you sure /board/ is a WordPress site? Sounds like you’re using forum software there and not WordPress. Which you should direct your question to the maker of that forum software.

    It also sounds like you have a permissions related problem, which you should take up with your hosting.

    ^ duplicate delayed post ignore this.

    Are you trying to make it so that people can’t leave a comment on a particular post or page?

    You could add this to the functions.php file of your theme

    function easel_debug_page_foot_code() { ?>
    	<p><?php echo get_num_queries() ?> queries. <?php if (function_exists('memory_get_usage')) { $unit=array('b','kb','mb','gb','tb','pb'); echo @round(memory_get_usage(true)/pow(1024,($i=floor(log(memory_get_usage(true),1024)))),2).' '.$unit[$i]; ?> Memory usage. <?php } timer_stop(1) ?> seconds.</p>
    <?php }
    add_action('wp_footer', 'easel_debug_page_foot_code');

    Which will output how many queries the page does and how much memory is used for the page load as well as how long it takes for the page to load. Generally slowness like that happens when there is a predominate amount of execution going on to generate the page via PHP. This could happen when you are on shared hosting and you basically run a lot of plugins, this happens a lot with SEO plugins.

    Create a hostedon.php file to be added to your mu-plugins folder and add this:

    function mynetwork_hosted_on() {
    		if (is_multisite() && !is_admin()) {
    			$current_site = get_current_site();
    			if (!isset($current_site->site_name)) {
    				$site_name = ucfirst( $current_site->domain );
    			} else {
    				$site_name = $current_site->site_name;
    			}
    			$output = "<span class=\"footer-pipe\">|</span> ";
    			$output .= __('Hosted on') . ' <a href="http://'. $current_site->domain. $current_site->path. '">'. $site_name. '</a> ';
    			echo apply_filters('mynetwork_hosted_on', $output);
    		}
    	}
    add_action('wp_footer', 'mynetwork_hosted_on');

    Which will basically make the .php file you just added run everytime all the time (only in the front end) execute in every theme where the wp_footer(); code is placed (pretty much every theme), which is generally way at the very bottom. .. you can adjust to put inline CSS in there instead of a class

    This will also make it so you don’t have to edit all of those themes.

Viewing 15 replies - 676 through 690 (of 1,361 total)