Archive old pages
-
We have pages going back a number of years showing on the front of our site. I want to archive old pages so they no longer take up space on the front but are still available if required.
-
Hi, this can be done using the list-pages shortcode.
Copy and paste this shortcode into a page, it will list your pages.
[list-pages]
To exclude one or more page from the archive, add the exclude option to the code, like this — [list-pages exclude=1,2,3] — and list the page ID #s separated by comma that you want to exclude.
I’m using this for reference: https://en.support.wordpress.com/list-pages-shortcode/
-
To avoid posting confusing information that only applies to one version of the software, it’s essential for us to have the exact URL of the site in question in order to provide accurate answers to questions. As u3amondaywalker has no URL linked to their username and has not posted here before I’m betting that the question is about a wordpress.ORG software install that we do not provide support for.
-
@u3amondaywalker
You failed to post a URL here. Our policy is not to respond to any question unless or until it is provided.We provide support only for sites hosted by wordpress.COM. We do not provide support for wordpress.ORG software installs. If your site is not hosted by wordpress.COM, our support docs do not apply, and we do not provide support. You are posting to the wrong support forum.
WordPress.COM and WordPress.ORG are completely separate and have different username accounts, logins, features, run different versions of some themes with the same names, and have separate support documentation and separate support forums. Read the differences here http://en.support.wordpress.com/com-vs-org/
As you are referring to a wordpress.ORG software install on paid hosting, if you don’t have a username account at WordPress.ORG account, then click http://wordpress.org/support/ and register one on the top right-hand corner of the page that opens, https://wordpress.org/support/register.php so you can post to the support forums there.
Resetting your WordPress.ORG password http://codex.wordpress.org/Resetting_Your_Password
WordPress.org support docs are at https://codex.wordpress.org/Main_Page
See also https://apps.wordpress.org/support/If you are referring to a site hosted by wordpress.COM then post the URL please.
-
-
Hi dvddln and thanks. I am probably not being clear..I want a Parent Page saying ‘archive’ but not listing all the ‘Child’pages inside the archive until a member clicks on the Archive parent – so normally the old pages do not show. Hope that is clearer – sorry for my ignorance.
-
-
You must be kidding me as the most recent post published there is This is Huddersfield U3A Monday Walking Group.
November 27, 2008 -
Oh wait! I take that back and apologize. I found recent posts on that site. dvddln will continue to help you.
-
@u3amondaywalker – You have a lot of pages, divided by seasons and days and walks. From what you’ve said, you want to hide the older pages from the sidebar. You want people to click an archive page, which then brings them to all these older pages. Is this correct? It’s doable, but it involves a little work.
Before I lay the steps out for you, the other issue may be the theme you are using, it’s an older WordPress theme, and by default it displays all your pages (parent and child) in the pages sidebar widget. You might want to try using a newer theme, and maybe using the Custom Menu feature that WordPress offers: https://en.support.wordpress.com/menus/
I’ll lay out the steps assuming you want to keep the same theme/look you have now.
This may not be the perfect solution, and you may need to tinker with it more and seek help elsewhere.
Here’s what you can do:
1. Create a new page and call it “Archived Pages” or whatever you want to call it (“Programmes”? “Walks”?)
2. Make the older pages you want to archive child-pages of this “Archived Pages” page.
3. Copy and paste this shortcode into the “Archived Pages” page. This will list the child-pages, and it will exclude the more recent parent pages (my guess is that would be the “Current and planned programmes” page?) – but you have to find out the ID# for that parent page. Once you have it, put that ID# where the question mark is in the code – here’s the code: [list-pages exclude-tree=?]
4. Remove the pages widget from your sidebar.
5. Add a Text widget to your sidebar, and in this widget add the urls to the pages you want to be in the sidebar. Also add the url for the new “Archived Pages” page. See this for how to add links to the Text Widget: https://en.support.wordpress.com/links/text-widget-links/
That should be it. If you chose to try it this way, good luck!
-
Thank you for your help it is much appreciated – I am not sure I am able to do what you suggest as I lack the experience.
However, firstly I have no problem in changing the theme to a newer one if that helps tidy up the presentation and archives the older pages – do you have a theme in mind?
Secondly how do I back up the pages we have – all of them – so if I make a bodge of the process we can recover all the information
Thank you
-
Hi daviddulin,
I have found the back up process and backed up the site onto my computer. Can you help with the creation of a widget to hold the archive if we change to a new theme?
Thanks
Chris
-
@u3amondaywalker
I think it’s time to ask for Staff help so I typed modlook into the sidebar tags on this thread for Staff help. How do I get a Moderator/Staff reply for my question? https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question Please subscribe to this thread so you are notified when they respond and be patient while waiting. To subscribe look in the sidebar of this thread, find the subscribe to topics link and click it -
Hi @u3amondaywalker, a new theme will be lovely :) I’d recommend going through the themes and checking on their demos to see which ones will suit you best, particularly since your site is made up of static pages rather than posts.
Once you’ve chosen one, you can add a widget that will display your pages for you.
-
-
- The topic ‘Archive old pages’ is closed to new replies.