The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Does anyone know how to find functions/codes/etc in WordPress?

    Does anyone know how to find functions/codes/etc in WordPress?

    Web Design
    9 3 139
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KempRugeLawGroup
      KempRugeLawGroup last edited by

      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

      ASTPPfA

      1 Reply Last reply Reply Quote 0
      • LesleyPaone
        LesleyPaone last edited by

        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">

        KempRugeLawGroup 2 Replies Last reply Reply Quote 1
        • KempRugeLawGroup
          KempRugeLawGroup last edited by

          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();
          ?>

          1 Reply Last reply Reply Quote 0
          • KempRugeLawGroup
            KempRugeLawGroup @LesleyPaone last edited by

            To no avail, but thank you. Excellent idea! I actually just realized I don't even have

            1 Reply Last reply Reply Quote 0
            • David-Kley
              David-Kley last edited by

              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)

              KempRugeLawGroup 1 Reply Last reply Reply Quote 1
              • KempRugeLawGroup
                KempRugeLawGroup @David-Kley last edited by

                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.

                KempRugeLawGroup 1 Reply Last reply Reply Quote 0
                • KempRugeLawGroup
                  KempRugeLawGroup @KempRugeLawGroup last edited by

                  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
                  1 Reply Last reply Reply Quote 0
                  • KempRugeLawGroup
                    KempRugeLawGroup @LesleyPaone last edited by

                    Turns out it was under entry-date, just not a file I had looked at.

                    Thanks so much!

                    1 Reply Last reply Reply Quote 0
                    • KempRugeLawGroup
                      KempRugeLawGroup last edited by

                      Turned out to be under functions.php under entry-date.

                      Thanks everyone!

                      Ruben

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Has anyone transferred a site from WordPress to Webflow?
                        josellamazares
                        josellamazares
                        0
                        2
                        141

                      • Disallow: /sr/ and Disallow: /si/ - robots.txt
                        McTaggart
                        McTaggart
                        0
                        3
                        74

                      • Need to find a wordpress theme
                        irapasternack
                        irapasternack
                        0
                        4
                        138

                      • How to know if a wordpress theme is coded correctly for Seo
                        BlueprintMarketing
                        BlueprintMarketing
                        1
                        9
                        5.1k

                      • Http://www.domain.com/services/city or http://www.domain.com/city
                        Landforce
                        Landforce
                        1
                        5
                        163

                      • Question #2: All of my INTERNAL links in OSE are being indexed from http://www.e.com/default.asp, and all my EXTERNAL links are linked to http://www.e.com/ am I getting a fraction of the link juice because of that?????
                        RobertFisher
                        RobertFisher
                        0
                        2
                        157

                      • Does anyone know how much a wordpress site can store (in terms of data) I want to put all my movies on it and use it as a personal global external hard drive! Thanks!!
                        TylerAbernethy
                        TylerAbernethy
                        0
                        3
                        164

                      • SEOMoz crawl report shows a duplicate content and duplicate title for these two url's http://freightmonster.com/ and http://freightmonster.com/index.html. How do I fix this?
                        Smith-Digital
                        Smith-Digital
                        1
                        3
                        610

                      Get started with Moz Pro!

                      Unlock the power of advanced SEO tools and data-driven insights.

                      Start my free trial
                      Products
                      • Moz Pro
                      • Moz Local
                      • Moz API
                      • Moz Data
                      • STAT
                      • Product Updates
                      Moz Solutions
                      • SMB Solutions
                      • Agency Solutions
                      • Enterprise Solutions
                      • Digital Marketers
                      Free SEO Tools
                      • Domain Authority Checker
                      • Link Explorer
                      • Keyword Explorer
                      • Competitive Research
                      • Brand Authority Checker
                      • Local Citation Checker
                      • MozBar Extension
                      • MozCast
                      Resources
                      • Blog
                      • SEO Learning Center
                      • Help Hub
                      • Beginner's Guide to SEO
                      • How-to Guides
                      • Moz Academy
                      • API Docs
                      About Moz
                      • About
                      • Team
                      • Careers
                      • Contact
                      Why Moz
                      • Case Studies
                      • Testimonials
                      Get Involved
                      • Become an Affiliate
                      • MozCon
                      • Webinars
                      • Practical Marketer Series
                      • MozPod
                      Connect with us

                      Contact the Help team

                      Join our newsletter
                      Moz logo
                      © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                      • Accessibility
                      • Terms of Use
                      • Privacy