• Resolved jo5329

    (@jo5329)


    If you go to my blog http://joscafe.com and on the left side under SIDE DISHES I have several pages I’ve created. Somehow a custom field got added to the bottom of the page that says “_WP_PAGE_TEMPLATE:”. I have gone into edit and clicked on Show Hidden in the custom field section to delete, but it won’t delete.

    I have deleted the page, but even a newly created one has it on there.

    Any ideas how to get rid of it?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Okay, looking at your source shows the following:

    <div class="feedback">
    Filed under <a href="http://joscafe.com/category/whatever/" title="View all posts in Whatever" rel="category tag">Whatever</a> &nbsp;
    [<a href="http://joscafe.com/blogs-about-buddies/" rel="bookmark" title="Permanent Link: # Blogs-About Buddies">link</a>]

    <ul class='post-meta'>
    <li><span class='post-meta-key'>_wp_page_template:</span> </li>
    </ul>
    </div>

    This is your culprit:

    <span class='post-meta-key'>_wp_page_template:</span> – you need to get that out of the link. I think you’ll find that in The_Loop section of the index.php file….

    Thread Starter jo5329

    (@jo5329)

    I went to my index.php and found this:

    <?php the_meta(); ?>

    Only. I use custom fields on some posts, so that’s why it’s there. But somehow that particular key got stuck on those pages and when I delete it it doesn’t.

    Okay, so you’re not seeing that oddball link because it’s included in the meta stuff…. hmm. Wonder if you can get at it through the database? Let me check some….

    Well, there’s a table in the database named wp_postmeta. I can’t tell from what’s in mine (nothing really – they just all say “default”) how you would go about fixing this. I guess you should maybe first back up your installation and your database, then try reuploading the files in the root wp folder and the wp-admin and wp-includes folders (this is what I would do personally to begin with – these are the core wp files, you shouldn’t have made any changes to them).

    If that doesn’t work, you could use phpmyadmin to view the wp_postmeta table in the database to see if you can find and delete the problem line.

    You might want to wait a while longer to see if someone who’s better at this sort of thing than I am (like podz or macmanx….) comes along with an easier quicker fix….

    Thread Starter jo5329

    (@jo5329)

    What I’m going to do, after digging through Codex for a long time, is create a page.php file to use, and leave the meta part out of it.

    Thanks for all the responses btw!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom Field’ is closed to new replies.