• I am so lost. And while I’m not the best at PHP, I can’t figure where my old designer put this one thing.

    I have sidebars that vary depending on the page. And depending on the page, it’ll show a different facebook/twitter widget that relates to that page. Basically… on page A, it shows Facebook A and Twitter A… and so on.

    Here’s the code:
    ‘ <div class=”code-facebook” style=”margin-bottom: 20px;”>
    <?php $values = get_post_custom_values(‘facebook_code’); echo $values[0] ?>
    </div><!–facebook–>

    <div class=”code-twitter”>
    <?php $values = get_post_custom_values(‘twitter_code’); echo $values[0] ?>
    </div>’

    What I can’t figure out is where it’s getting this from. I’ve looked in every php file and can’t find it. It’s also not in the CSS.

    Any help would be great!
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can’t imagine it would be anywhere but in the sidebar.php or the functions.php file.. Hard to tell without being able to poke around myself.

    Thread Starter russface

    (@russface)

    nope not there. sidebar.php just has my generic sidebar when the special one isn’t called upon.

    How does WordPress know where to go for “get_post_custom_values” ??

    Do you have access to a program like Dreamweaver where you can do a search for text within the code? If not, you can use a program like GrepWin to search files in a folder for the words you are looking for. That way you can search for something and maybe find the file tucked away in a folder somewhere that you didn’t think to look? It’s an option at the least.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot find where to edit this…’ is closed to new replies.