Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter phatelvis

    (@phatelvis)

    Thanks again.

    What I actually want is

    in the backend:

    Say I have one English blog, and two French blogs (I actaully have an instance where this is reality.)

    When I am in the English blog admin section, I would like to see 2 different icons for the French sites, so I can tell them apart.

    I’m afraid I hacked your plugin code to acheive this…

    Thank you for a great plugin

    Thread Starter phatelvis

    (@phatelvis)

    Thank you Dennis for your prompt reply. I didn’t even think of the front end – there are no actions / filters / overrides that I can use for the admin pages icons then?

    Cheers

    I could not get the attachments meta box to appear for my custom post type, when adding new: my-publication

    I discovered that I had to edit line 1225 of

    attachments/classes/class.attachments.php

    changing

    $post_type = str_replace( ‘-‘, ‘_’, sanitize_title( $_GET[‘post_type’] ) );

    to

    $post_type = str_replace( ‘_’, ‘-‘, sanitize_title( $_GET[‘post_type’] ) );

    As far as I can see, a post type can be registered containing either a “-” or a “_”, so maybe the str_replace is superfluous??

    “$post_type
    (string) (required) Post type. (max. 20 characters, can not contain capital letters or spaces) “

    http://codex.ww.wp.xz.cn/Function_Reference/register_post_type

    Either way, that aside, this is a very useful plugin, thanks

Viewing 3 replies - 1 through 3 (of 3 total)