homepage Welcome to WebmasterWorld Guest from 54.204.168.212
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Add the same code in every post
cfmtravel



 
Msg#: 4628122 posted 4:50 pm on Dec 5, 2013 (gmt 0)

Hi guys

I was wondering if there is some plugin in Wordpress that allows me to add at the bottom of each post a portion of code/text that is pretty tedious to write each time.

 

travelin cat

WebmasterWorld Administrator travelin_cat us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4628122 posted 7:56 pm on Dec 5, 2013 (gmt 0)

So you only want the code to appear on the bottom of posts, not every page? Also, does the code change or is it always the same?

cfmtravel



 
Msg#: 4628122 posted 8:27 pm on Dec 5, 2013 (gmt 0)

Just in the posts. Let's say that the idea is to present the code and alter the content inside it (imagine a table with different text for each post)

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4628122 posted 1:54 pm on Dec 6, 2013 (gmt 0)

I highly recommend you skip the idea of a plugin and just write the HTML yourself. Save it to a text doc or in a post that you keep in draft mode for future ref. Then just paste the code in when you need it and fill in as you wish.

cfmtravel



 
Msg#: 4628122 posted 4:45 pm on Dec 6, 2013 (gmt 0)

Hi lorax

This was my first idea but I thought that it could exist a plugin to this task.

Post Snippets seems to be pretty close but I have to try to see if I can add content once the snippet is in the post

lorax

WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4628122 posted 1:59 pm on Dec 7, 2013 (gmt 0)

How much and in what form (text, image, video) is the stuff you put into this framework? It it's not much, you could write a plugin and use shortcode with attribute values that you could pass the content to. Like so:

[mytableshortcode c1="what I want to put into cell 1" c2="cell 2"]

cfmtravel



 
Msg#: 4628122 posted 4:52 pm on Dec 7, 2013 (gmt 0)

I will have quite a lot of content (mainly text). It will be a group of divs to contain different kind of links (video,blog post, articles, pictures, web sites) each link will have title and link + an optional description. After the divs I would like to have a link to open a page to submit a link.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved