WordPress.org

Ready to get started?Download WordPress

Forums

Extending post.php, expanding the DB? (3 posts)

  1. Xander
    Member
    Posted 8 years ago #

    I want to hack wordpress so that I can include some extra fields on the post page. Essentially I'd like to do music reviews, and have seperate fields for Artist, Title, Year of Release, etc. plus Tracklist and ability to upload a cover (tricky?). I'm wondering if it makes more sense to copy post.php to review.php (for example) and hack that, or whether it's fine enough to rip into post.php and do a little drop-down like the Advanced Controls to make the extra options hidden if they aren't to be used.

    I'm thinking a second file would be best, as any updates made to wordpress would lead to one massive headache to update with my changes, which are sure to be somewhat extensive.

    My php knowledge is also quite basic, so this introduces some trouble :) any suggestions on how to proceed and what else I might need to do would be very appreciated. Thanks.

  2. schulte
    Member
    Posted 8 years ago #

    Have you simply considered http://codex.wordpress.org/Using_Custom_Fields -- as far as your uploading images, you'll like http://codex.wordpress.org/Version_1.6 when it comes to image uploads.

  3. Xander
    Member
    Posted 8 years ago #

    Thank you... looks like I can do what I want to do without messing around too much!

    Two custom field plugins helped a great deal... get custom field values and rc:custom_field_gui. After that it's just a matter of hacking the heck out of category-x.php (where x is the category for reviews in this case).

Topic Closed

This topic has been closed to new replies.

About this Topic