1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Where are wordpress page files stored?

Discussion in 'WordPress' started by snous, Oct 16, 2010.

Thread Status:
Not open for further replies.
  1. #1
    I have wordpress installed, and have posted a couple blog posts. I'm trying to access the page files via ftp and I can't find them. I see that in the top level folder there is an index.php, but where are the other page files stored????
    SEMrush
    Any help?
     
    snous, Oct 16, 2010 IP
    SEMrush
  2. broxen

    broxen Peon

    Messages:
    60
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try /main_directory/wp-content/themes/yourthemename/page.php
     
    broxen, Oct 16, 2010 IP
  3. juhasan

    juhasan Active Member Premium Member

    Messages:
    388
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    75
    #3
    You can only see the theme or template file via ftp. Because all the content (pages, posts, categories) is saved in the database.
     
    juhasan, Oct 16, 2010 IP
    sarahk likes this.
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, the pages as you see them are created on the fly. You can view the post data with phpMyAdmin, or any other database admin tool.

    This is a list of data stored in the database, everything from options to post comments.
    http://codex.wordpress.org/Database_Description
     
    Cash Nebula, Oct 16, 2010 IP
    sarahk likes this.
  5. Internet Marketing IQ

    Internet Marketing IQ Guest

    Messages:
    359
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #5
    The beauty of database driving sites.

    Read a bit about MySQL and it will make more sense.
     
    Internet Marketing IQ, Oct 16, 2010 IP
  6. djarotstudio

    djarotstudio Member

    Messages:
    200
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #6
    - If you're looking for the theme files : got to where broxen points you. your_top_dir/wp-content/themes/yourthemename/ the files should all in this directory.
    and yes, you can browse this directory through your ftp - or your cpanel Filemanager
    - If you're looking for your "contents" - then they're now in your database. Go with Cash Nebula pointer.
    Login to your cpanel - Look for your phpMyAdmin. Click on it.

    - You can find your contents in : wp_posts tabel.

    Before doing something with your database - inside phpMyAdmin, always backup your data first.
     
    Last edited: Oct 19, 2010
    djarotstudio, Oct 19, 2010 IP
  7. (BN)Nolan

    (BN)Nolan Well-Known Member

    Messages:
    66
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #7
    how bout the uploads folder. if youre asking where content uploaded in the admin panel goes. That loaction can also be changed in the ACP settings if I'm not mistaken.

    Uploads folder might be in wp-content too btw. Sorry. It's been a bit since I've moved on from WordPress.

    Just re-read. Your page files are stored in the database. However if you want to edit the page templates, you con go to wp-include/themes/yourthemename/single.php or /page.php.
     
    Last edited by a moderator: Aug 7, 2017
    (BN)Nolan, Jul 28, 2017 IP
  8. salmanshafiq

    salmanshafiq Well-Known Member

    Messages:
    243
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    128
    #8
    Files are stored in wp_posts table in database having post_type "page". If you want to update the template of the page then you can found that in themes folder with name page.php. You can also create your own custom template for specific pages. Steps are below

    1. Copy the page.php and rename that and then upload to yourtheme folder.
    2. Paste <?php /* Template Name: CustomPageT1 */?> where CustomPageT1 will be the name of the page template.
    3. Just need to edit the page from pages and select the page template from the right side Below update button.
     
    salmanshafiq, Jul 30, 2017 IP
Thread Status:
Not open for further replies.