Solved

How do I document the shortcodes on existing WordPress website that I have inherited?

Posted on 2015-01-20
6
74 Views
Last Modified: 2015-01-26
Hi

I have inherited a Wordpress website with no documentation. I can see lots of shortcodes in the page designs. I can also see lots of parameters within some of the shortcodes.

Is there any way to interrogate/view some config files to at least see what the shortcodes and options are? In that way I could then play with each short code on a new page to see what it does?

Thanks in advance!
0
Comment
Question by:everycloud
  • 2
  • 2
  • 2
6 Comments
 
LVL 28

Expert Comment

by:chilternPC
ID: 40559315
I think this plugin called "My shortcodes" will export your shortcodes as script into a file,
you could then see the list from there?

https://wordpress.org/plugins/my-shortcodes/
0
 

Author Comment

by:everycloud
ID: 40559468
Hi

Thanks for your prompt response. I have installed this plugin, but it only seems to allow me to export shortcodes that have been created within this plugin. It doesn't work for the many shortcodes that were already coded before the plugin was installed.

Do you know of anything that will collate all of my pre-existing shortcodes?
0
 
LVL 7

Accepted Solution

by:
Alicia St Rose earned 150 total points
ID: 40562653
I would simply go file by file and do a search for "shortcode". Starting with functions.php file. You may find them all there.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 28

Assisted Solution

by:chilternPC
chilternPC earned 350 total points
ID: 40563983
a lot of  the shortcodes will be in the plugins as well as the current theme.

copy the site locally and use a package like Dreamweaver and search the entire file system of the website (well wp-content folder)  the code for  "add_shortcode"

this will list all the short codes registered and the associated function
you'd have to then open  the function to see the options etc..
0
 
LVL 7

Expert Comment

by:Alicia St Rose
ID: 40565765
One thing I guess I forgot to ask:

When you say you see them in the "page design" are you talking about the template files (ending in .php on the server with "do_shortcode", "add_shortcode") or in the editor as shortcodes: [shortcode][/shortcode]?
0
 

Author Comment

by:everycloud
ID: 40570364
Hi.

@LaughHearty - i meant in the Editor. Sorry for not being clear! Thanks for the advice to use Dreamweaver. I have a copy lying around so will give it a go.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

839 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