• Resolved faranae

    (@faranae)


    I apologize for creating a new topic with this, but I’ve been experimenting with the shortcodes for a few hours now with no luck and the documentation is very confusing for a novice. I did spend quite some time clicking through topics both on here and Github as well.

    I have a regular (non-archive) page in which I would like to link to specific storylines. Ideally I would love to do so using shortcodes in the event that we change some data down the road but I haven’t been able to figure out what parameters/arguments to use in which of the shortcodes in order to link to them properly.

    I did figure out that I am able to link to the first COMIC in an individual storyline using:
    [webcomic_link post=”xx”]%medium<br>%title[/webcomic_link]
    This is the format I’d like, but with Storylines (though it did teach me a fair amount about how the shortcodes work).

    I was hoping the “storyline” shortcodes would follow a similar pattern, but none of them seem to work in a the same fashion, or perhaps I’m simply calling them incorrectly? The only shortcode I’ve gotten any response from on the page is the [webcomic_storylines_list] code, which lists everything (including categories) instead of one item.

    Quite literally all I would like is a way to link to a specific storyline, displaying its image, name, and number of pages. I THINK I’ve found a unique identifier for the individual storylines in the admin panel, through the &tag_ID=xx section of the URL? But I’m not sure if that’s what I’m supposed to use.

    I’m just tremendously lost. My PHP knowledge is limited to none but if I need to add anything to the functions.php I can do that too as I managed to get a child theme set up and working. ?? I would really appreciate any help you can toss my way!

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

    (@faranae)

    Oh, I mistakenly quoted the wrong shortcode I was tinkering with but now I’ve gone and lost it. But I did find it at one point. That’s embarrassing.

    Plugin Author Mike

    (@mgsisk)

    Apologies for the confusion, @faranae. I’m trying to work out examples for all of Webcomic’s shortcodes, but it’s slow going; hopefully I can clarify a few things.

    First –?whenever you’re working with a WordPress Page that you want to use Webcomic bits on, it almost always helps to specify a Collection in the Webcomic Settings metabox on the Edit Page screen. Without that, Webcomic can’t know what Collection the Page “belongs” to, and a lot of other things won’t just work, unfortunately.

    Second, it sounds like you’ve almost got it: you do need the “tag_ID” number from the URL (the Simply Show IDs plugin can help with this as well, actually). Then, you should be able to use something like this:

    [webcomic_storyline_link term="###"]%medium<br>%title[/webcomic_storyline_link]

    Note that this template tag happens to work without setting a Collection in the Webcomic Settings meta box because term ID’s are unique; as long as you’re using the correct term ID, WordPress will know which storyline you mean.

    Thread Starter faranae

    (@faranae)

    TERM! That’s what I was mucking up! And thank you for the plugin recommendation, that will come in very handy.

    Thank you so much for the swift response. I did have the collection set in the page settings, it just seems I was mixing up some when it came to which arguments to use. (Now knowing the purpose of ‘term’ will certainly make my life easier.)

    The documentation is easy to navigate at least, and it’s nothing a bit of experimentation/trial and error can’t usually work through for the most part.

    Thank you again for your assistance. The plugin has been incredibly fun to work with and set up!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Linking to specific Storylines using shortcodes?’ is closed to new replies.