Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Allen

    (@amweiss98)

    I’m not sure what you’re asking…just like any shortcode on WP, you can add it to a post or as php. Since you’re using another plugin, it seems that its that plugin that is supposed to do what you want.

    Thread Starter UndergroundFlix

    (@undergroundflix)

    How can I add ‘This text here’ to the code so that it appears in every imported post?

    I am only pulling the post titles from the RSS feed but I want the content to be the same for each post pulled – lets say for every post I import I want the content/description portion to say ‘This text here’ that way when I view every imported post the content/description will already have the text ‘This text here’ for me to edit to my liking.

    Plugin Author Allen

    (@amweiss98)

    if you are using the feed to post, you would need to go into the import_posts.php file and go towards the bottom…find the $content variable and add you text to that…you would need to do this using php…then save the file since it will be overwritten in the next update. If this is the shortcode, do the same thing with the main php file for the plugin.

    Thread Starter UndergroundFlix

    (@undergroundflix)

    After reviewing the PHP file the $content variable can not be found. Are you maybe referring to the variable $thisContent ?

    Plugin Author Allen

    (@amweiss98)

    yes…that’s it

    Thread Starter UndergroundFlix

    (@undergroundflix)

    Thanks. I tried messing with it a little but kept receiving errors after the edit. Can you please provide sample code to inform me of how I can add text after $thisExcerpt

    I want it to display the variable $thisExcerpt and then the text below in the content portion of each post.

    [tab:Link 1]

    <center><iframe width=”660″ height=”400″ src=”http://vidto.me/embed-CODECODECODE-660×400.html&#8221; frameborder=”0″ allowfullscreen></iframe></center>

    [tab:Link 2]

    <center><iframe src=”http://allmyvideos.net/embed-CODECODECODE.html&#8221; frameborder=0 marginwidth=0 marginheight=0 scrolling=NO width=660 height=400></iframe></center>

    [tab:Link 3]

    <center><iframe src=”http://vidspot.net/embed-CODECODECODE.html&#8221; frameborder=0 marginwidth=0 marginheight=0 scrolling=NO width=660 height=400></iframe></center>

    — If this is not possible, how can I get that text into a variable of its own and then have it displayed after $thisExcerpt ? Thanks.

    Plugin Author Allen

    (@amweiss98)

    here’s the problem…this requires understanding what variable you want in the CODECODECODE…if this isn’t too hard to get out of the rss feed, you can do this, but my understanding is that you’d need to write a regex expression etc, to get out the code. Since I don’t have any time to do customizations of the plugin (and nobody else has asked for this), you might try first seeing if you can get the CODECODECODE part, then put the html part <center>…</center> into a variable and then add it to $thisExcerpt like this:

    $thisExcerpt=$thisExcerpt.’
    ‘.$myhtmlcode

    Thread Starter UndergroundFlix

    (@undergroundflix)

    I don’t want a variable in CODECODECODE that is just for me to go back and manually edit after the post has been created. Does this change anything?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Post Template’ is closed to new replies.