Title: wpt ignoring archive.php
Last modified: May 12, 2019

---

# wpt ignoring archive.php

 *  [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * (@airdrummer)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/)
 * i have a page that uses a custom archive.php template, but it is ignored, even
   tho a sisbling template, single-download.php, isn’t ignored
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwpt-ignoring-archive-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [WPtouch](https://wordpress.org/support/users/wptouch/)
 * (@wptouch)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11561555)
 * Hi [@airdrummer](https://wordpress.org/support/users/airdrummer/),
 * Sorry to hear about the trouble you are having. If the content on that page is
   added directly to a custom template file, and the template file is in the desktop
   theme, then WPtouch won’t be able to ‘see’ the template file and the content 
   in it.
 * Let us know a little more about how the content on the page is being added and
   we’ll have a better idea of why it’s not showing up in the WPtouch theme. Thanks.
 *  Thread Starter [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * (@airdrummer)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11562614)
 * i have placed links to my single-download.php for my edd download pagetype
    (
   [https://easydigitaldownloads.com/](https://easydigitaldownloads.com/)) into 
   the bauhaus directory, where wpt finds it just fine, as well as news.php, but
   the archive.php link seems to be ignored
 * these are the links i have in ~/www/wp-content/plugins/wptouch/themes/bauhaus/
   default:
 *     ```
       news.php -> ../../../../../themes/lalo/news.php
       single-download.php -> ../../../../../themes/lalo/single-download.php
       archive.php -> ../../../../../themes/lalo/archive.php
       archive-download.php -> archive.php
       category.php -> archive.php
       tag.php -> archive.php
       taxonomy-download_category.php -> archive.php
       taxonomy-download_tag.php -> archive.php
       ```
   
 * as i said, my download pagetype displays correctly in both single-download & 
   thru a shortcode, but the template hierarchy doesn’t seem to work for [https://letartliveon.com/downloads/tag/is-artist-name/](https://letartliveon.com/downloads/tag/is-artist-name/)
   
   or [https://letartliveon.com/downloads/category/genre/landscape/](https://letartliveon.com/downloads/category/genre/landscape/)
 * the template hierachy is supposed to default to archive.php, which is the template
   used in desktop mode. is there any debug output in wpt i can turn on?
    -  This reply was modified 7 years ago by [airdrummer](https://wordpress.org/support/users/airdrummer/).
 *  Plugin Contributor [WPtouch](https://wordpress.org/support/users/wptouch/)
 * (@wptouch)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11566598)
 * [@airdrummer](https://wordpress.org/support/users/airdrummer/),
 * WPtouch free does not officially include support for custom page templates. We
   haven’t seen this type of setup before, so I couldn’t say why archive.php isn’t
   kicking in like the other templates.
 * You can enable WordPress Debugging to see if the logs show where things are failing.
   You can enable it per the instructions here – [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)
 *  Thread Starter [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * (@airdrummer)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11568923)
 * i’ve enabled debugging per wp instructions, but there are no errors, simply no
   output from archive.php
 * btw, most of the debug contains warnings:
    `Notice: wp_enqueue_style was called
   incorrectly. Scripts and styles should not be registered or enqueued until the
   wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please
   see Debugging in WordPress for more information. (This message was added in version
   3.3.0.) in ~/public_html/wp-includes/functions.php on line 4773` all on wp;-\
 *  Plugin Contributor [WPtouch](https://wordpress.org/support/users/wptouch/)
 * (@wptouch)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11570408)
 * Are your links symlinks? How are you linking to the templates in another directory?
 *  Thread Starter [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * (@airdrummer)
 * [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11570507)
 * correct: symlinks, which work for my news.php & single-download.php templates,
   but not archive.php

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

The topic ‘wpt ignoring archive.php’ is closed to new replies.

 * ![](https://ps.w.org/wptouch/assets/icon-256x256.png?rev=1313960)
 * [WPtouch - Make your WordPress Website Mobile-Friendly](https://wordpress.org/plugins/wptouch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptouch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptouch/)
 * [Active Topics](https://wordpress.org/support/plugin/wptouch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptouch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptouch/reviews/)

## Tags

 * [easydigitaldownloads](https://wordpress.org/support/topic-tag/easydigitaldownloads/)
 * [ignore](https://wordpress.org/support/topic-tag/ignore/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 6 replies
 * 2 participants
 * Last reply from: [airdrummer](https://wordpress.org/support/users/airdrummer/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/wpt-ignoring-archive-php/#post-11570507)
 * Status: not resolved