Using Chrome you can right click - Inspect element to see the html code behind that element:
I wonder how to find which php file has generated that html. Maybe there is some tool to put a breakpoint into the html so the php server will stop when trying to generate it again?
I'm using WordPress locally. I'm on Ubuntu 14.04LMS. I'm using Sublime Text 3 with XDebug.
UPDATE 1
A WordPress plugin able to put, in every file, something like the following would be a good solution (I think from my beginner's viewpoint):
echo '<!-- name_of_the_php_file.php -->';
Not all data is stored in html or php files in Wordpress.
It may be possible that the string you are looking for is coming from database since wordpress uses database to store variable data.
Please search database also
Unfortunately with wordpress you need to do some digging:
add_action('save_post', 'whatever');
there may be code statingreturn $template
, this will prob also have the post type in the function. Look for the path its callingIf you think you have found the correct template, try a echo to see if it appears on screen. If yes you have found the template, look at what you have follow the includes/ requires to appropiate .php files, you'll find your html somewhere either as html or php code creating html.
hopefully you find what you are looking for, but there are no rules really and other methods can exist including htaccess rewrites to point to php file, etc or a functions file creating pages on the fly
This might be a good point to mention if you ever create a entire plugin, store files logically and include from a file controller or plugin file. Store pages in a pages folder so they are easy to find.
Good luck!
update: filter to output path on template files