Does anyone know how to find functions/codes/etc in WordPress?
-
Right now, I'm working on solving a relatively easy WP issue (easy, because someone told me what to do. Thanks iNetSeo). I have to replace:
<span class="post_date"></span class="post_date"> and replace it with <span class="post_date date="" updated"=""></span class="post_date> But, I can't find the "_<span class="post_date">"</span class="post_date">_For a number of my WP problems, the hardest part is just located the code/function/markup I need to replace. Does anyone know where this might usually be stored on a website? Also, does anyone know if there's any tool that would allowed to just put "various function" in a search box, and wordpress take you to where it was on the backend of your site, so you could edit it?
I included a screenshot of our editors, but I already opened them all, pasted the code in Ctrl-F to no avail, but maybe I missed something.
Thanks for helping with my frustrating scavenger hunt!
- Ruben
-
Turned out to be under functions.php under entry-date.
Thanks everyone!
Ruben
-
Turns out it was under entry-date, just not a file I had looked at.
Thanks so much!
-
Hi Dave,
Not in index, nor single, but thanks especially for pointing out single. I wouldn't have thought to look there. We don't have an archive for some reason.
Thanks for the suggestions!
- Ruben
-
I'm actually trying to fix a bunch of the structured data errors I have from GWT. I have a ton of them, and they all have to do with this one piece of code. Apparently, it's a common WP problem. I will try to find those files now. Thanks!
- Ruben
P.S. I also checked my functions.php via someone else's suggestions, but I didn't see it there either.
-
I'm guessing you are doing this to add data to a snippet?
I would check these three places. Most WP themes have them here:
index.php (main Blog Page)
single.php (single Post Page)
archive.php (archive Page) -
To no avail, but thank you. Excellent idea! I actually just realized I don't even have
-
I assume this has to be in the Single Post Php file somewhere, so I'm just going to post that to see if there's some synonym for entry date or post date that, I"m not seeing:
get_header();
setup_postdata($post);
get_sidebar();
?>get_template_part( 'loop', 'single' );
?>Kemp & Ruge Law Group
$off=1;
query_posts('cat=5&orderby=DATE&order=ASC');
while(have_posts()):the_post();
?>$off++;
endwhile;
wp_reset_query();
?>query_posts('p=109');
while(have_posts()) :the_post();
the_content();
endwhile;
wp_reset_query();
?> -
Try searching for <span class="entry-date">in your single-post.php file and see if that turns up what you are looking for.</span class="entry-date">
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Are slides how's etc the new Splash Pages?
[How did Moz know that my question was about this?!] I've just completed an audit of nearly 50 websites in the tourism industry and 90% had a slideshow, large image or video taking up more than the initial screen on the fairly large screened Chromebook that I'm using. I'm advising them all to ditch this and am often getting resistance from the site owners and their web developers. I know that these can be better optimized for page load speed, which is poor for most of these sites, especially on mobile devices; but from a usability standpoint, are these affective at drawing in users? Do users take the time to view these? Are they annoyed at always having to scroll down to see if there is anything else useful on the homepage? I think they are like the splash pages of the past: poor for usability and SEO. I've advised to at least make sure that the images are sized so the top of the page fits any screen (some of them do resize well for mobile devices, but maybe not laptops/desktops), include text with calls to action and click through to relevant content. I've been noting that they aren't media businesses selling images or videos, so they need to get their offerings to the top of the page so that users can see and engage more quickly. Anyone have any stats or experience on this? Thanks, Ann
Web Design | | anndonnelly0 -
Is there a way to host my website.com/BLOG URL PATH from a different host than my main website.com host?
Is there a way to host my website.com/BLOG URL PATH from a different host than my main website.com host? Is it accomplish-able with DNS settings or are there other considerations that might lead to complications doing this? Specifically, we are investigating install WordPress on a dedicated host, JUST to power the blog for our main website, but our main website is on an internal proprietary hosting and CMS. So basically we're trying to host: website.com --> OFF OF CURRENT INTERNAL HOSTING website.com/blog/ --> OFF OF THIRD PARTY HOSTING (USING WORDPRESS) I know this is a technical question beyond the scope of SEO, but I'm figuring there are members of the community that may have tried this already so I'm floating it here. Many thanks! Cheers.
Web Design | | AlexVelazquez0 -
How to find out that none of the images on my site violates copyrights? Is there any tool that can do this without having to check manually image by image?
We plan to add several thousand images to our site and we outsourced the image search to some freelancers who had instructions to just use royalty free pictures. Is there any easy and quick way to check that in fact none of these images violates copyrights without having to check image by image? In case there are violations we are unaware of, do you think we need to be concerned about a risk of receiving Takedown Notices (DMCA) before owner giving us notification for giving us opportunity to remove the photo?
Web Design | | lcourse1 -
Do you know any tool(s) to check if Google can crawl a URL?
Our site is currently blocking search bots that's why I can't use Google Webmaster Tools' URL fetch tool. In Screamingfrog, there are dynamic pages that can't be found if I crawl the homepage. Thanks in advance!
Web Design | | esiow20130 -
The Best Wordpress Templates and The Best SEO Plugins??
Hey guys, I am a newbie and after so many painstaking hours of building my new site using the WIX platform, I just found out that WIX is not SEO friendly 😞 So referring to (copy n pasted) the old post below posted in by Big Bazza back in June 2011, does anyone agree or have any updated information they can assist me with so I can get my new site started ? Cheers 🙂 www.studiopress.com - excellent templates and support is first class! EDIT: These all support WP 3.0 and are SEO friendly too! (They have modified the SEO functionality) However, the framework also allows you to run Yoast Wordpress SEO - which is generally considered the best SEO plugin for WP. http://yoast.com/wordpress/seo/
Web Design | | Giorgio680 -
Wordpress Frameworks for SEO - Genesis - Does it Get Any Better?
I'm sure there's a ton of people in this community running Wordpress, any Genesis developers/users out there? For anybody who doesn't know, Genesis is a parent framework for building wordpress child themes. It saves a ton of time for people that aren't too handy w/ php (like me). I'm working on a few sites locally with it right now, and it's really impressive. I'm seriously never planning on using another WP framework. It also integrates perfectly with Yoast SEO, which is something not all frameworks do. So I thought I'd try to get some input from the community here, anybody have another framework they like? Or have an opinion on the SEO benefit of genesis? Would love to hear...
Web Design | | SVmedia0