WordPress.org

Ready to get started?Download WordPress

Forums

How to check if a post exists by url (4 posts)

  1. liveland
    Member
    Posted 1 year ago #

    Is there any method I can use to detect if a post exists using the URL of the post?

  2. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Type it directly and correctly into the address bar of your browser.

    If you wish to use a remote source to check a page, enter the url here:

    http://validator.w3.org/

    or here:

    http://sitecheck.sucuri.net/scanner/

  3. liveland
    Member
    Posted 1 year ago #

    Sorry I should have been more specific, I mean't check if a certain post exists using php code from within a wordpress website.

    I've found the get_page_by_title function, which allows you to test if a page exists using the title, I'm looking for something similar but that uses the URL of a post.

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags