Solved

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

Posted on 2015-01-20
6
70 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
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.

 
LVL 28

Assisted Solution

by:chilternPC
chilternPC earned 350 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
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…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Import and export files in 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 : Click on Too…

771 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

8 Experts available now in Live!

Get 1:1 Help Now