Support » Fixing WordPress » Cannot find pages I have created

  • Resolved Dan Boy

    (@dan-boy)


    I have just started a web site with WordPress. I started with an “About Us” page, the page was created and I can view it in a browser but I cannot find it.

    If I change the permalinks to post name WordPress can’t find the file either.

    I do not understand where I am going wrong.

    Cheers Dan

Viewing 15 replies - 1 through 15 (of 19 total)
  • Site url?

    Thread Starter Dan Boy

    (@dan-boy)

    It’s not live so you won’t be able to see it. It’s just on my PC.

    Then we’re pretty limited with regard to what help we can offer.What do you mean by:

    I can view it in a browser but I cannot find it.

    If you are using custom permalinks, check that mod_rewrite is running on your server.

    Thread Starter Dan Boy

    (@dan-boy)

    The URL I am working with is:-

    localhost/wordpress

    if I create a page called “About-Us” where will I find this page? It must exist somewhere. I want to edit the code in the file but I can’t find it!

    Cheers Dan.

    What theme are you using?

    Thread Starter Dan Boy

    (@dan-boy)

    Twenty Twelve

    Then your new, published, Pages will be automatically added to the top navigation menu of your site.

    Thread Starter Dan Boy

    (@dan-boy)

    I’m sorry but I don’t understand. Where do the pages actually exist or do they not exist as separate items?

    All content for your site is stored in your database – not in any files.

    Thread Starter Dan Boy

    (@dan-boy)

    Right, so if I want to edit the PHP code I need to look at the database?

    Edit what PHP code?

    Thread Starter Dan Boy

    (@dan-boy)

    Mmm, I am obviously confused. How do I insert code behind one of the pages? Like I want to use this search panel code like I have on my .htm page I created for our old site.

    <!-- Add this css link to your head tag of the HTML document -->
    <link href="http://www.evidence.nhs.uk/Content/Download/search_panel_v2.css" rel="stylesheet" type="text/css" media="screen" />
    <!--[if IE 7]>
    	<style type="text/css">
    		fieldset.nhsesp_panel div.nhsesp_search div.nhsesp_logo { padding: 0 0 1px 0; }
    	</style>
    <![endif]-->
    <!--[if IE 6]>
    	<style type="text/css">
    		fieldset.nhsesp_panel div.nhsesp_search div.nhsesp_logo { padding: 0 0 1px 0; }
    	</style>
    <![endif]-->
    <!-- Add this to inside the body tag of the HTML document where you would like the search panel to display -->
    <form action="http://www.evidence.nhs.uk/search?spuid=b9abeb56-3c91-444e-8d2a-a14800ddda3a" method="get" target="_blank">
    	<fieldset class="nhsesp_panel">
    		<legend>NHS Evidence Search</legend>
    		<label>Search:</label>
    		<div class="nhsesp_search">
    			<div class="nhsesp_logo">
    				<a title='NHS Evidence' href="http://www.evidence.nhs.uk">
    					<img src="http://www.evidence.nhs.uk/Content/Download/images/search_panel_evidence_logo_v2.gif" alt="NHS Evidence" border="0" />
    				</a>
    
    			</div>
    			<div class="nhsesp_search_panel">
    				<div class="nhsesp_input_wrapper">
    					<input class="nhsesp_input" type="text" name="q" id="q" />
    					<input class="nhsesp_img" type="image" src="http://www.evidence.nhs.uk/Content/Download/images/search_panel_button_v2.gif" alt="Search NHS Evidence" title="Search NHS Evidence" />
    				</div>
    			</div>
    			<a title='NHS Evidence search help' href="http://www.evidence.nhs.uk/search-and-browse" class="link" target="_blank">Search help</a>
    		</div>
    	</fieldset>
    </form>

    How would I do this with WordPress?

    Thanks for your help, Daniel.

    Assuming that this meant to be separate from the default WordPress search functionality, you would need to create a custom page template within a child theme. Never edit the Twenty Twelve theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues.

    Thread Starter Dan Boy

    (@dan-boy)

    OK, thanks for the advice. It’s a steep learning curve for me. I will rethink my plan.

    Cheers Daniel

    Your page template, in one of the back-end folders contains the PHP and styling for any page added to your site. When you add content and pages it is added through the database of the site and communicates with the template file and the CSS file to give you the finished page you see.

    You can amend the content of the page using HTML to change things like the text colour, and add DIV tags etc, but tp change how you display this content on the screen, you’ll have to edit the template file. Editing the template file will affect all items which use this template.

    esmi, correct if i’m wrong here 🙂

    Cheers. Iain

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Cannot find pages I have created’ is closed to new replies.