WordPress.org

Ready to get started?Download WordPress

Forums

Adding a bunch of article pages to WordPress (4 posts)

  1. Andrés Sanhueza
    Member
    Posted 4 years ago #

    I have moved a website made of static HTML pages to WordPress entirely except for about one hundred pages that are from a collection of press articles (like this and this). I don't know what's the best way to blend these with WordPress, since I want to maintain the navigation and stuff.
    I suppose I can do it with sub-pages of an 'articles' page or post in a category, but I don't want to blend those with the other content types in the admin page nor that they appear on the main feed, the loop or sitemaps.

  2. s_ha_dum
    Member
    Posted 4 years ago #

    Can you not just put the code in a folder on the server and provide a link? Say your site is www.example.com and WP is in the root directory. Put a folder named stuff in the root and browse to www.example.com/stuff. There is your stuff. You'll probably have to edit the anchor links though.

  3. Andrés Sanhueza
    Member
    Posted 4 years ago #

    That's what I have been doing, but I think it will be nice to have these article pages integrated with WordPress due to the template, the scripts and stuff. Currently the pages only have the article text but without any navigation to the rest of the page. Since these appears on search engines (and I see no reason these aren't supposed to) may be nice to integrate them better, instead to editing them one by one. Probably I can use templates in an HTML editor.
    Perhaps there's a way to embed the pages into a WordPress query.
    A particular need is that I want that all permalinks of these automátically display the id number.

  4. s_ha_dum
    Member
    Posted 4 years ago #

    Well, to get a permalink id you are going to have to integrate the posts into the WP system, meaning you'd then have to edit your theme to eliminate those posts from the front page and also hook some custom functions to some backend stuff to eliminate your posts from the admin panels and hook still more functions into the rss system to eliminate them from that.

    You could include WP into your other files and use its functions to get consistency in appearance and function, but you wouldn't have permalink id nunbers.

    You could create a template page that includes your various pages based on the URL, but again, no permalink ids.

    Caveat emptor: You can insert posts (via a custom script) with post types that WP doesn't recognize. WP will ignore these posts, as if they weren't there. You can write your own query to get them out or use the posts_* hooks to modify a query. I've done this, but never in production. I was playing with the system on local server. I don't know what might break if you do this. In other words, I don't know if this is a good idea or not.

    Whatever you do, I think you are in for a lot of coding. Probably the template option would be quickest and easiest.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.