Saving/reuse snippet or include type statement to quick edit pages

  • Unknown's avatar

    I was trying to figure out if there is a way to either save in drop in code to multiple pages on wordpress.com premium rather than jumping around and copying from another page every time I need the snippet i.e.

    <div id="chapternav">[list-pages option='menu_order' exclude='3,25,270,309,311']</div><a class="dbutton" href="https://discussion675.wordpress.com/" target="_blank">✎ Discuss&nbsp;&nbsp;</a>

    https://burtabreu.wordpress.com/prologue-the-root-of-all-fear/

    or, even better, a way to inset something like a shortcode [insert-custom-block id=”footer-nav-and-discuss-button”] so that once in place any changes to the custom block would be reflected in each page.

    I read some info about gist but not sure if it is a wordpress.com item, if it is pulled locally or from a 3rd party site etc.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
  • Unknown's avatar

    wordpress.com premium

    The fact you have a premium upgrade changes nothing in this regard at all.

    I’m not sure if what I post below will be helpful or not. Here goes!

    Blogs are essentially a reverse chronological order publishing tool wherein the most recent published post will display on top. You cannot change this order on a free hosted WordPress.com blog. There is no upgrade that allows you to change this post order on a free hosted WordPress.com blog. It’s designed to serve your visitors as they come to read the most recent posts and will not be inclined to trawl through hundreds of posts to locate it.

    See here for the option of creating a book-like structure > http://en.support.wordpress.com/write-a-book/ Perhaps that will work for you.

    Or you could use a single sticky post as an index page > http://en.support.wordpress.com/posts/post-visibility/#sticky-posts

    Or you can falsify every date-stamp before publishing.

    Staff have provided this support doc http://en.support.wordpress.com/show-your-posts-in-chronological-order/

    Blogs are essentially a reverse chronological order publishing tool wherein the most recent published post will display on top. You cannot change this order on a free hosted WordPress.com blog. There is no upgrade that allows you to change this post order on a free hosted WordPress.com blog. It’s designed to serve your visitors as they come to read the most recent posts and will not be inclined to trawl through hundreds of posts to locate it.

    See here for the option of creating a book-like structure > http://en.support.wordpress.com/write-a-book/ Perhaps that will work for you.

    Or you could use a single sticky post as an index page > http://en.support.wordpress.com/posts/post-visibility/#sticky-posts

    Or you can falsify every date-stamp before publishing.

    Staff have provided this support doc http://en.support.wordpress.com/show-your-posts-in-chronological-order/

  • Unknown's avatar

    Yikes! I did not intend to duplicate that. I’m sorry. :(

  • Unknown's avatar

    I guess I didn’t explain it well. I am using Pages for an online serial novel and already have the site set up successfully. There is some code that I would like to use on every page that adds a chapter list and a ‘discuss’ button. These work as well but when I add a new page I have to go to an old page, copy the code, go to teh new page and paste it in. If I later tweak that code I have to open each page again and do it one at a time. If the book gets to be a few hundred pages long that won’t work very well. So I wondered about some way to do something conceptually similar to an include statement, where you put something on the page that is actually calling a single file. This way changes to one file are reflected on all pages calling that file instantly. I don’t know if existing shortcodes, or that ‘gist’ thing mentioned on other wordpress sites has anything like that that is supported by wordpress.com.

  • Unknown's avatar

    ok I see gist listed on the shortcodes pages so that looks like an answer.

  • Unknown's avatar

    ok I see gist listed on the shortcodes pages so that looks like an answer.

    I’m happy to read that. Best wishes with your site.

  • Unknown's avatar

    Ok well not the answer. I’ll live but figured I’d post in case anyone else asks.

    A simple test gist with some html on github

    [gist https://gist.github.com/stormvisions/b463637df27a3e2ffd46 /]

    is inserted into my WordPress.com site but it doesn’t render on the front side of the site (which is what I wanted). I just get a code block. I’ll figure something out.

  • The topic ‘Saving/reuse snippet or include type statement to quick edit pages’ is closed to new replies.