• Resolved anefarious1

    (@anefarious1)


    Hello,

    Do you know of any way to automatically insert shortcodes for hundreds of posts?

    For example, say I have an H3 Title on 300+ WP posts… how would I avoid having to manually go in and place shortcodes? That would obviously take too much time and effort.

    Another example would be the dropcap feature on the first letter of each post.

    I know there are lots of ad placement plugins that can inject a shortcode in specific places BUT since (as I understand it) these shortcodes require a closing tag… that’s a problem?

    Do you have another way??? Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    A possible solution could be (1)creating a child theme and (2)copy the page template single.php to it and (3)apply the changes according to this manual.

    As for the dropcap, that can be done by css but depends on how you want to implement this.

    Thread Starter anefarious1

    (@anefarious1)

    Wow great idea.

    But are, for example, H3 title tags actually part of a typical single.php template? I thought those are only created manually in the post editor.

    You are right. When you enter these via the content editor it’s dynamical text.
    Perhaps you can elaborate how you want to use the shortcode in combination with the h3 tags.

    I’m thinking about exporting all posts to xml. Open the file, do a search and replace and import the posts xml after. But I am not entirely sure about this method…

    Thread Starter anefarious1

    (@anefarious1)

    I was thinking about it some more. CSS would probably be better for just manipulating H tags in a variety of ways.

    I don’t have specific ideas for this plugin, but I think someone will eventually design an excellent looking WP theme around it… using Bianca’s template idea.

    I’d be interested in that!

    For my situation, I can’t utilize the plugin (although I want to) because I have a ton of existing content. Too much work!

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

The topic ‘Question About Inserting Shortcodes’ is closed to new replies.