Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Mor

    (@superbrightfuturegmailcom)

    Could this maybe be moved to the “advanced” forum?

    Thread Starter Mor

    (@superbrightfuturegmailcom)

    To put things more succinctly: I want to make images become attached to a post when I select them as “featured picture” in said post.

    (I also want a function that goes through all my already posted posts and performs said action)

    Thread Starter Mor

    (@superbrightfuturegmailcom)

    Thank you for the response! It’s however rather cumbersome to add the license information by hand for each image rather than adding it in php. Is there any other way to make it display html in the lightbox?

    Forum: Fixing WordPress
    In reply to: Shorter shortcode?
    Thread Starter Mor

    (@superbrightfuturegmailcom)

    2 months later and I found out how to do it, in the codex, of all places.

    http://codex.ww.wp.xz.cn/Shortcode_API

    “Other features in brief

    For backwards compatibility with older ad-hoc shortcodes, attribute names may be omitted. If an attribute has no name it will be given a positional numeric key in the $atts array. For example, [myshortcode 123] will produce $atts = array( 0 => 123 ). Positional attributes may be mixed with named ones, and quotes may be used if the values contain spaces or other significant characters.”

    Forum: Fixing WordPress
    In reply to: Shorter shortcode?
    Thread Starter Mor

    (@superbrightfuturegmailcom)

    Could you not… make a plug-in (or function?) that replaces shortcode where the shortcode is immediately followed by an equal sign? So you’d type [i=134] but the plugin would find it and automatically turn it into [i i=134] before the shortcode API got to it?

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