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
-
Cost Difference Between Coding Custom Theme or Coding Child Theme
Assuming there is an SEO advantage to coding a Wordpress custom theme (wondering if that assumption is correct) versus modifying a child theme, is there a very significant cost difference between the two choices? Competition in my niche (New York City commercial real estate is keen) and I am dealing with competitors such as www.wework.com, 42floors.com and squarefoot.com with optimized sites built with quality code. In the event that we modify a child theme, I am leaning in any case towards have wireframes and illustrations provided to present to the developer. Should I expect a custom theme to be double the cost, triple assuming the design is provided? I have read that code maintenance on a child theme is less costly as modifications get pushed to the parent theme. How substantial are maintenance costs (time to maintain) for a custom theme? Thanks!!!
Web Design | | Kingalan1
Alan0 -
Tips on finding the right Senior Designer / Design Director
Hello Everyone, I manage a fairly large educational website that we are looking to completely redesign to improve the overall site user experience and usability. In the past I, a non-designer, business person, would just roughly draw how I thought the site should look and our developer (who is good, but not a web designer) would just try his best to make everything look profession. Over the years, it has become painfully obvious that we need to invest in more design expertise and move towards a modern, smartly designed website. So my question: Where are the best places to find good freelance designers? I have of course conducted web searches, browsed elance, and asked my network for referrals. However, I am finding that most of the really good ones, ones who have to ability to take charge and lead us through this entire process, and who have at least a basic understanding of SEO principles, work for larger integrated development shops who also expect their people to develop the new site as well. We already have a developer and are primarily looking for the design expertise. Does anyone in the Moz community have any suggestions or even referrals? Thanks! Eric
Web Design | | Eric_R0 -
Is it necessary to Remove 301 redirects from Wordpress after removing the 404 url from Google Webmaster?
There were many 404 urls in my site found by Google Webmaster. I've redirected these urls to the relevant urls with 301 redirect in wordpress. After that I removed these 404 urls from Google Index through Webmaster. "Should I cleanup these 301 redirects from Wordpress or not? ". Help Needed.
Web Design | | SangeetaC0 -
Optimizing a Wordpress Blog For SEO
Besides the standard Yoast for SEO plugin tweaks, I'm researching best practices when setting up a wordpress blog. In this instance, the "front end" of the site would be hardcoded static pages designed for an e-commerce site, while there would also be a /blog/ attached to the site - for blog posts, fresh content, etc.
Web Design | | GKLA0 -
.htaccess on wordpress multisites
Hi Moz fans, I have a site thats uses wordpress multisite. we have a number of sites set as subfolders i.e /en/ /de/ /us/ /fr/ ect. I need to force trailing slashes on each site as I currently have the pages being spidered as /about/ and /about and /iso-9001/ and /iso-9001. I have tried numerous things I have found online in the .htaccess and nothing is working. Can anyone HELP!!
Web Design | | imsmlouis0 -
Anyone used bugherd.com for onsite seo purposes?
Just as the title says, has anyone used bugherd.com for SEO purposes? I was thinking it could be used to show client changes that need to be made regarding the website. Example could be if you are looking at a CRO prospective, you may want to change/add some graphics or text to improve conversions. It seems like a nifty tool to show the changes you want made and to keep track of them. It integrates with basecamp also 🙂
Web Design | | KyleChamp0 -
Switched From Wordpress, Traffic Dropped In Half
Hello, Thank you for taking a look at my issue. My site: http://www.getrightmusic.com A month ago, I switched from Wordpress to ExpressionEngine. The reason being I wanted a more powerful membership functionality with media uploading. After I switched, my traffic basically dropped in half. I was averaging around 4-6,000 unique visitors per day and now I am at about 2,000 per day. I resubmitted a new sitemap to Google webmasters. I also set up 301 redirects on my top 80 urls that were ranking well and driving traffic in Google. Not only did Google kick me off of my top spots in the SERP's, but I no longer get indexed as quickly as I used to. With the old Wordpress site I would get url's indexed within minutes. Now they aren't even getting indexed really at all. Is this a normal occurrence when switching site designs and systems? Do you think Google will just take a little time before they give me back some respect? Is there anything I should be doing to get back to ranking and getting indexed faster? Thanks for any help or any insight you may have. Jesse
Web Design | | getrightmusic0