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
-
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 -
Online Catalog (E-commerce like) Wordpress Themes?
I'm currently looking for a Wordpress theme similar to e-commerce/shopping websites like ebay. I'm planning to put up a buy and sell site for shoes where people can upload shoe listings on their own.. The site we're planning doesn't have a buy/checkout button and paypal integration so it will look like more of an online catalog and not a shopping cart. We will just add a contact number/email in the product listing so a buyer can contact and personally meet the seller. Let me know if this can be done in Wordpress + e-commerce plugins. I would also like to know if there's a WP plugin that will allow users to use Facebook or Twitter to login/sign up in our website/platform. Let me know if this is possible in Wordpress by installing a plugin. Thanks in advance!
Web Design | | esiow20130 -
Simple Wordpress Question regarding Footer Link
I have a client with a site that has the company that built their website's link in the footer. How can I remove this? I am pretty proficient with Wordpress but I am drawing a blank. The site is www.northatlantacleaning.com Thanks and I do extend the courtesy of awarding 'Best Answer' and thumbs up etc to good responses.
Web Design | | Atlanta-SMO0 -
Http://www.domain.com/services/city or http://www.domain.com/city
Hi, I have a website created on a WordPress Platform. My site is in the "Service" industry and we perform the same service for many different "cities." My question pertains to the Navigation Bar and SEO. Is it better to have a "Service" tab on the navigation bar - that has sub navigation that lists all the cities on a drop down menu. When this happens the URL string looks like http://www.domain.com/service/city The other choice would be to create individual TABS on the NAV bar, by doing this the URL string would look - http://www.domain.com/city . I could be wrong, but I am assuming the http://www.domain.com/city is better than http://www.domain.com/services/city for SEO purposes, ....if I am correct is there a way to make SUB Menu URLS appear as http://www.domain.com/city ? Any input as always would be appreciated best regards, Jimmy
Web Design | | jimmy02251 -
How to put 'Link to this article' HTML code at bottom of article & is it helpful?
Hello, I was thinking about putting a box down at the bottom of my client's main articles that let's the reader easily copy the html code it takes to link to the article they're reading. Maybe I'd put it after the author bio. Do any of you do this? If so, what format do you use? It has to look nice of course. This is a non-techie industry. Thanks.
Web Design | | BobGW0 -
Word Press Seo Errors/ Questions
Hi my name is Tina I am new here I hope you guys can help me out. I thought building my new site with Word Press was going to simplify things, however I have a ton of errors, and I am not sure what they are, or how to fix them. I am hoping someone could share with me a solution for these errors. I have 28 rel=canonical errors, I am not sure what this means, I understand it to mean my pages are similar, and this is to set a heirarchy between my pages. Please correct me if I am wrong. If I am correct would this be necessary to add if my main keyword was "widgets" and my home page was optimized for "widgets" and my next page was "blue widgets" and so on. While my pages are similar they are all optimized for different versions of my main keyword some using long tail keywords. Do you know of a plugin that can help solve this problem? Also does anyone have a plugin they recommend for G+ my G+ authorship verification is causing an error as well? I am using Head Space 2 I have used this seo plugin numerous times with great success it has been my favorite seo plugin. However, we have a portfolio that shows our clients websites, and on those pages Head Space will not let me enter a description tag. What plug in do you guys recommend with more control over each page? Another interesting issue is on one of our pages I optimized it for our Canadian clients, and now every page has been listed in Google.ca for the keywords it should have on Google.com. We are listed on Google maps, verified in Google places, and our address is on the site so they know we're from the USA however, the majority of our keywords are only listed in Google.ca. We're on page one for all of them, we are in the top three on most of them so that's not bad, but we want to be listed in Google.com as well. Any suggestions on this?
Web Design | | TinaGammon1 -
Site Redesign: Bounce rate, converstion, page views, etc.
Hi Fellow Mozzers, I had a few questions regarding some analytics data we have been seeing since our redesign. Just last week we did a site design overhaul at www.lylif.com. One of the biggest changes we immediately saw was a 15-20% increase in our bounce rate. However, our conversion rates, page views, pages per visit, and site duration has increased. If anyone has some insight as to why we may be having such a large increase in our bounce rate that would be most helpful!
Web Design | | lylif11 -
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