Avatar of IM&T SRFT
IM&T SRFT
 asked on

Adding a default heading to each new Wordpress Post

Hi All

I am creating a knowledge base with about 100 posts and this has come along nicely.  However, when I click to create a new post  would like to add 3 lines of text by default at the top of each post as follows when they are being created.

1) 1st Line of text
2) 2nd Line of text
3) A pull down menu containing the name of the team the post 'owns'

I have searched through the custom posts plugins but most are either years out of date or over complicated for whats required.  Maybe I can add shortcode to put a pull down list into a post when creating it
WordPress

Avatar of undefined
Last Comment
IM&T SRFT

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
William Nettmann

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
IM&T SRFT

ASKER
Sorry, so I meant as I click the create a new post these 3 lines will display at the top of the post and the author can then continue to type below these.

I will take a look at ACF tonight

Thank you for your advice
William Nettmann

So you want those three lines to be part of the post eventually?
IM&T SRFT

ASKER
Yes I want them to display automatically at the top of each new post
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
William Nettmann

You could possibly do some clever stuff using the "content_edit_pre" filter.
IM&T SRFT

ASKER
Thank you  William,

ACF seems a good plugin, not finished playing around with it yet.

I may go back to basics and simply categorise posts by department / alphabetically

Once again thank you for your assistance.  I will leave the clever suggestion for now until my knowledge and understanding has improved