I want to create a shortcode
-
I’m completely new to WordPress. I read in the book Professional WordPress Design and Development by Brad Williams, david damstra and Hal Stern.
I have earlier worked a lot with asp.net Webbform but WordPress is very different and I found it difficult.
I’m now working on a blog for me.
I want to create some contact info about me in each post I do so a good solution is to use a shortcode.So I want to use something like [Contact name=”xxx”]
where name is the person that owned the blogg.I have some questions about that.
1. In what file should I put the shortcode?
Can I just put it under a file named contact.php in a folder called contact in the plugin folder ?2. How to I best get the contact information such as mailaddress an telephonenumber from the database.
//Tony
- The topic ‘I want to create a shortcode’ is closed to new replies.