Thread Starter
bauble
(@bauble)
ok i’ve clarified ‘include’ is something like this:
<?php get_header(); ?>
i’m thinkin i’ll put it somewhere in post.php
now i just need an idea of how to write a small .php module that will have a one line input field that is my custom field “mymusic”.
You don’t need a different file. And you are supposed to edit index.php, not post.php unless you are using a different theme. And your theme is in your /wp-content/theme/yourtheme/ folder (you wrote admin; don’t go near wp-admin if you don’t have to). As far as your custom fields, here is a helpful article:
http://codex.wordpress.org/Using_Custom_Fields
and as far as the plugin
http://www.coffee2code.com/wp-plugins/
you want:
Get Custom Field Values
and since it sounds like you are newbie:
just follow the example verbatim.
Thread Starter
bauble
(@bauble)
i actually want to edit the “write post” page in the admin section, so i can change the layout, particularly to add my custom field as part of the simple write-post page, (so i don’t have to have Advanced Feature showing, as i dont need most of them)
i have already read the codex page you’re linking to and it doesn’t cover what i’m interested in. i already know how to use and implement custom fields in my entries, that is not a problem. it’s the admin side i want to customise.
Download post.php, edit-form.php and edit-form-advanced.php.
Save them.
Put them somewhere safe.
Then edit. It’s all in little blocks and so long as you are careful, it’s very editable.
Thread Starter
bauble
(@bauble)
ah ok i missed out on edit-form.php thanks podz.
Thread Starter
bauble
(@bauble)
ok for anyone else trying this, i’ve had to mess around with the
admin-functions.php, edit-form.php, edit-form-advanced.php and post.php to get the result i wanted.
it isn’t pretty because i was reluctant to remove things permanently or change things (even though i was working from backup files) but if you wantto pick and choose from the advanced and simple posting options in the ‘Write-post’ page thats where to look.
The reason i did this is because i think the “Advanced Custom Fields” is very difficult to use quickly and efficiently, it is too far down the page, you have to select from a drop down menu…. it’s basically a pain all round. I’m dying for someone to write a good wordpress desktop application that compares with Livejournals SeMagic, where you can really customise it how you need and it can handle all features including plugins of wordpress in it’s own interface inclusively… but i’m just dreaming.
Can you give me an idea of how you did this? I’m looking for the same kind of solution – the ability to be able to predefine the custom fields.
I want to do it for pages rather than posts but I’m guessing the principles will be the same.
I am just wanting to move the excerpt box back to where it was before the upgrade to 2.0 as I use it every time I post. Can anyone tell me exactly which codes to move so that I don’t mess up the most important part of WordPress, the post function.
Problem solved. Find
<fieldset id="titlediv">
<legend><?php _e('Title') ?></legend>
<div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo $post->post_title; ?>" id="title" /></div>
</fieldset>
Add after:
<fieldset id="postexcerpt" class="dbx-box">
<legend><?php _e('Optional Excerpt') ?></legend>
<div><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea></div>
</fieldset>
Remove the fieldset containing the ‘postexcerpt’ from further down the document from opening fieldset to closing fieldset tag.
I’m gonna wait and mess with this after I upgrade to WP2 (still using 1.5.2 now).
I wanted to mention there’s a nice “Custom Fields GUI” plugin that lets you put drop-down menu OR radio buttons instead of the Advanced section. Well, mine still shows the Advanced stuff down the page but I ignore it and use the plugin’s fields that I can control their GUI.
I’m looking at doing something similar, yet entirely different… 🙂
I want to edit it (post.php, et al) to do this:
infinull.cjb.net (sorry about the ads, I didn’t realize they were so obnoxious)
It really is a schnazzy piece of javascript though 🙂 if I do say so myself.
Obviously it would be hard to edit this so it can edit posts as well as post them.
but just posting is OK.
this is for the chsquotebook.com which is heavily moderated.
Elyse had been doing all sorts of things, by herself.
adding categories for people, adding the quote-#.
(she’ll still have to add the quote number, but that’s all now)
Anyone have experience here at all or am I going into unexplored territory?
can it be implemented as a plugin?
–Mark
Got it don’t worry.
It was pretty easy 🙂
–Mark