logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$1
New page template not working

I created a php file for a new page template, and it became available in the drop down menu on the Create a Page page, as normal.

But that page did not use the template I set it to. After a number of troubleshoots, replacing code, renaming php files, etc... I tried one more thing.

The template I made was for a single column page. There is an existing page on my site http://www.eworldinc.org/resources/ which is a single column page. It uses the Default Template. The page I was creating a new template for is http://www.eworldinc.org/entry/. So I set it to use the exact same template as http://www.eworldinc.org/resources/, expecting it to display as a single column page, but guess what...

Even when using the same template as http://www.eworldinc.org/resources/, which is single column, http://www.eworldinc.org/entry/ still shows up displaying the sidebar.

I don't really have any code to paste that would help, as it appears wordpress is just applying the templates I choose to any new pages.

What in the world is going on? Please help....

robphat | 12/05/11 at 5:54pm Edit
Tutorial: How to assign prize money


The experts have suggested, on average, a prize of $22 for this question.

(6) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    12/05/11
    6:09pm
    Romel Apuya says:

    are you using any caching plugins?
    might need to clear cache.

    • 12/05/11 6:12pm

      robphat says:

      No. I am already thought of that, but I do not have any cache plugins activated anyway. Any more thoughts? It's just like Wordpress has decided that any new page created will reject the Template assigned to it.

    • 12/05/11 6:21pm

      Romel Apuya says:

      have you added

      /* Template Name: whatever template name

      */


      on the new php template you created?

      also might want to make your price higher.

      can you send me ftp and wp login details so i can look at the template files?

      cheers,

    • 12/05/11 7:12pm

      Romel Apuya says:

      wow..u pasted the wp-admin details here.
      you dont realize that its public?

    • 12/05/11 10:21pm

      Romel Apuya says:

      You must change the information in the top of the template:

      old:


      <?php
      /*
      Template Name: information
      */
      ?>

      new:


      <?php
      /* Template Name: information */
      ?>

    • 12/06/11 9:10am

      robphat says:

      I did that. I changed from

      Old:

      <?php
      /*
      Template Name: Entry
      */
      ?>

      to New:

      <?php
      /* Template Name: Entry */
      ?>

      But this made no change. Then I even deleted all the contents of the entire etnry.php file in wp dashboard Editor, and /entry still showed the same content. That page is not pulling loading any template, not matter what I set it to. It just has a mind of its own.

      Another expert here says my host is using a low level chache like varnish-cache.org/

  • avatar
    Last edited:
    12/05/11
    6:42pm
    Lawrence Krubner says:

    You may wish to post a screenshot of your admin, just in case the experts might spot something subtle that you have over looked. In particular, a screenshot of the form where you create either a new page or a new post.

    • 12/05/11 6:53pm

      robphat says:

      OK. I've attached the screen shot of the page creator page.....

      And these pages both use the same Default Template, but show up different:
      http://www.eworldinc.org/resources/
      http://www.eworldinc.org/resources/

      And here's the code:


      <?php get_header(); ?>
      <?php global $is_home; ?>

      <div id="content" class="content_inner" >

      <?php if ( get_option( 'ptthemes_breadcrumbs' )) { yoast_breadcrumb('<div class="breadcrumb">','</div>'); } ?>

      <h1 class="cat_head" ><span><?php the_title(); ?></span></h1>


      <?php if(have_posts()) : ?>
      <?php while(have_posts()) : the_post() ?>
      <?php $pagedesc = get_post_meta($post->ID, 'pagedesc', $single = true); ?>


      <div id="post-<?php the_ID(); ?>" >
      <div class="entry">
      <?php the_content(); ?>
      </div>
      </div><!--/post-->

      <?php endwhile; else : ?>

      <div class="posts">
      <div class="entry-head"><h2><?php echo get_option('ptthemes_404error_name'); ?></h2></div>
      <div class="entry-content"><p><?php echo get_option('ptthemes_404solution_name'); ?></p></div>
      </div>

      <?php endif; ?>


      </div> <!-- content #end -->


      <?php get_sidebar(); ?>


      <?php get_footer(); ?>

      Attached Image

    • 12/05/11 7:54pm

      Lawrence Krubner says:

      The screenshot says "Default template" is being assigned. How do you know you have edited the default?

    • 12/05/11 7:55pm

      Lawrence Krubner says:

      Off topic: as admin of the site, I was able to log into the database and delete the post where you accidentally posted your password. However, for security, you should change your password.

    • 12/06/11 8:53am

      robphat says:

      I saw in the wp support pages that Default Template is page.php, but I didn't edit it at all. Eworldinc.org/resource uses Default Template, and so does /entry, but they show two different things.

      Prior to making them the same, I had a different template I was using for /entry, which I deleted, but I will reupload it now and try another suggestion from an expert here.

      Concerning my posting my login info here, perhaps I misunderstood the request of another expert here who I thought was asking for it. I backed everything up before I posted it though, in case something unscrupulous happened. But thanks for deleting it.

  • avatar
    Last edited:
    12/05/11
    6:43pm
    Pixel Coder says:

    Have you tried deactivating your current theme for TwentyEleven for example.... viewing the changes and then re-activating your custom theme?

    I've had that issue where custom templates don't show up until de-activating etc... Possibly a bug worth logging.

    Let us know how you go.

    • 12/05/11 6:49pm

      robphat says:

      Strange. I activated 2011 and both pages showed the same, but they both show the way I don't want them to show. Whereas in my desired theme, one shows the way I want, and the other doesn't. I've had problems with this them from day one, though. It's Video 1.0.4 by R.Bhavesh

      Any ideas?

    • 12/05/11 6:51pm

      Pixel Coder says:

      Sorry Rob, you've completely lost me here... beyond the activation / de-activation not sure what it could be here minus caching... There's a host of potentials it could be.

    • 12/05/11 6:54pm

      robphat says:

      OK thanks...

    • 12/07/11 1:04pm

      Pixel Coder says:

      Is this a premium theme? If so contact the Author immediately, if others experiencing similar they should fix for you.

    • 12/07/11 2:09pm

      robphat says:

      Well I didn't pay for it. It's a Templatic theme, but I got it for free, but I think it was originally a premium.

    • 12/07/11 2:09pm

      robphat says:

      Well I didn't pay for it. It's a Templatic theme, but I got it for free, but I think it was originally a premium.

    • 12/07/11 2:19pm

      Pixel Coder says:

      Hi,

      Templatic, can't argue with free I suppose.

      However regarding your "back with the denero" statement. We've all joined in helping to point you the right direction. Hopefully you are able to fully resolve this issue.

      Ultimately though, (this opinion may not be shared) i'd much rather you simply put your money where your mouth is. The way this site works is you have control to allocate once you have came to a solution.

      You can split the money between those involved in the thread or if one member has contributed 100% you can award the "beer money / bread money" to that individual.

      This entire philosophy of "may come back later" is a massively contributing factor to inconsiderate and unjustified damage the industry has received.

    • 12/07/11 8:01pm

      robphat says:

      Thank you for the information. I have never been in a forum like this before. In fact, I didn't know they existed. I will make a donation Friday.

  • avatar
    Last edited:
    12/05/11
    7:59pm
    Gabriel Reguly says:

    Hi robphat,

    Your prize is really low, a bigger prize would attract more experts.

    Anyway, your page http://www.eworldinc.org/resources/ does not seem to be the default, but instead looks like template store php.

    That is what your body tag tells:

    body class="page page-id-1196 page-template page-template-store-php"

    Regards,
    Gabriel

    • 12/05/11 8:00pm

      Gabriel Reguly says:

      Hi robpaht,

      Entry is using a different template:

      body class="page page-id-1991 page-template page-template-no-sidebar-php"

      Regards,
      Gabriel

    • 12/06/11 8:55am

      robphat says:

      That is very strange. That is what /entry was originally, but it wasn't showing as single column, the way it was supposed to. It was still showing a sidebar, so before I even posted on this site, I changed it to Default Template. I wonder how it is still showing store.php

      But that makes sense though, because it just seems to be loading from some other template than the ones I have been selecting for it.

    • 12/06/11 9:08am

      Gabriel Reguly says:

      Hi robphat,

      If you can afford a bigger prize, like $20, I can help you to sort out this issue.

      Please send me login details via PM.

      Regards,
      Gabriel

    • 12/06/11 10:27am

      robphat says:

      I think it has something to do with the host caching somehow. I'm going to install copy the wp to another host and see what happens. Then I may be back with the dinero...

  • avatar
    Last edited:
    12/05/11
    8:06pm
    Francisco Javier Carazo Gil says:

    Hi robphat,

    It's really strange. Your hosting is using some kind of low level cache like Varnish (https://www.varnish-cache.org/)?

    Try to change permalink and try to acceso your site directly via IP.

    Hope it helps!

    • 12/06/11 9:28am

      robphat says:

      Hmm. Well here's what happened:

      I viewed site by the IP. No change.

      I changed the permalink to the /entry page. No change.

      I viewed with both changes at the same time. No change.

      I changed the home and site url entries in the wp-options table. The homepage showed fine, except it was missing one of the widgets I put there in the theme options. And all pages showed 404, even though the permalinks were changed to the URL with the IP.

      However, something unexpected happened when I changed home and site url in wp-options. After I did that, the video slider in the home page that I just assumed was always broken in this theme....began to work. I think this theme is really just jacked up, and I don't know enough to fix it.

      But I've been making it work for me...until this issue with the new page template not working...Ghost in the dashboard....

    • 12/06/11 12:33pm

      Francisco Javier Carazo Gil says:

      This is really strange.

      Try to set WP_DEBUG, because of it appears any warning or notice.

  • avatar
    Last edited:
    12/07/11
    2:06pm
    Manoj Raj says:

    I am not sure what your exact problem is with the video theme. I have tried installing it in my domain. The version is video 1.0.5 by R.Bhavesh


    http://www.comnedy.com/videotemplate/entry/ - uses template named "Resources"

    http://www.comnedy.com/videotemplate/resources/ - uses the same template "Resources"

    http://www.comnedy.com/videotemplate/default-template/ - uses the default template offered by the theme

    http://www.comnedy.com/videotemplate/entry-2/ - uses a new template "Entry"

    Everything is working fine for me..

    • 12/07/11 2:12pm

      robphat says:

      Hmm. That leads me to believe it has something to do with the host caching something. I copied it to another host, but it didn't copy right, and was getting php errors, so I am going to copy it again and see if it works.

This question has expired.





Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.