Solved

Adding a default heading to each new Wordpress Post

Posted on 2016-08-18
6
32 Views
Last Modified: 2016-08-22
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
0
Comment
Question by:IM&T SRFT
  • 3
  • 3
6 Comments
 
LVL 12

Accepted Solution

by:
William Nettmann earned 500 total points
Comment Utility
You are not clear where the three lines must be - when the post is created / edited, or when it is displayed?

To add three extra fields to the editor, you can either use an existing plugin like ACF or roll your own.

To display them, you would create a suitable template in your theme.
0
 

Author Comment

by:IM&T SRFT
Comment Utility
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
0
 
LVL 12

Expert Comment

by:William Nettmann
Comment Utility
So you want those three lines to be part of the post eventually?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:IM&T SRFT
Comment Utility
Yes I want them to display automatically at the top of each new post
0
 
LVL 12

Expert Comment

by:William Nettmann
Comment Utility
You could possibly do some clever stuff using the "content_edit_pre" filter.
0
 

Author Closing Comment

by:IM&T SRFT
Comment Utility
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
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

I want to start by talking about the use of plug-ins for WordPress. I started a web-site for a company I was working for a few years ago; I had extremely basic knowledge of HTML. I am a Graphic Designer by trade so I invited the opportunity as a cha…
WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now