homepage Welcome to WebmasterWorld Guest from 174.129.103.100
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:4628124
 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




msg:4628176
 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:4628179
 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




msg:4628337
 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:4628391
 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




msg:4628620
 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:4628637
 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