• Hi all, I’m thinking about tackling a major modification to the post page, and wonder if I could get some guidance and input …
    I run a site that is basically a link collection. Each link contains a title, which is hyperlinked to a story on another site, plus a brief blurb describing the story. So WP is perfect for this in terms of organization, categories, etc. But each post is really not a thing in and of itself, rather a reference to a story at another site.
    So, what I want to be able to do is modify the post page so that in addition to Title and Post boxes, there is a third box (between those two) for Location. This would contain the URL of the story.
    So, then, on the output page, the title of the entry would appear, and rather than being linked to the post itself, it would be linked to an external story. Right below that, the Post copy (which is actually just descriptive text, describing the external link) would appear.
    I know that’s probably clear as mud, but if you take a look at http://www.dancingaboutarchitecture.com, you can see the site as it stands right now. I’m currently hand-coding it in an HTML editor, and would love to automate posts with WP. Am I biting off more than can be easily chewed?
    Best,
    James

Viewing 3 replies - 1 through 3 (of 3 total)
  • No, I don’t think so, and actualy, you may not even need to do any editing (other than to the index.php file)….
    WP has a feature of custom fields – from the advance edit/post screen, scroll down, it’s after all the Post/Save/Cancel buttons. You can enter anything you want as the key — say “Story URL” — and give it a value — the actual URL. Then in the index.php page, you can extract the tag (based on the name “Story URL” and use it to build your link.
    Doing it this way would require less work than changing the posting screen and ultimatly changing the data base too (not to mention future upgrades would be a problem.)
    TG

    Thread Starter jbickers

    (@jbickers)

    OK, obviously this sounds great … can you give me a bit of specific guidance on what you mean by “extract the tag in index.php”? Maybe an example?
    Best,
    James

    Thread Starter jbickers

    (@jbickers)

    OK, I think I might be able to pull this off, if I could get some guidance from someone who’s familiar with the guts of WP …
    Under “Post,” I’ll hit “Advanced Editing,” and use the “Post Slug” field for the link URL. Now, how do I go about tweaking WP so that when it outputs archive and main pages, it uses that Post Slug entry as the permalink, rather than generating one based on the entry? In other words, in what file is the code that outputs and formats archive pages?
    Best,
    James

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Major modification to the post page …’ is closed to new replies.