havardhedde
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Remove Author, Date and Category from PostsHmmm. This looks like a good method. But my index.php file looks like this (also twenty ten).
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: https://codex.www.ads-software.com/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Ten * @since Twenty Ten 1.0 */ get_header(); ?> <div id="container"> <div id="content" role="main"> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. */ get_template_part( 'loop', 'index' ); ?> </div><!-- #content --> </div><!-- #container --> <?php get_sidebar(); ?> <?php get_footer(); ?>
I can’t find these lines:
get_the_author()
the_time()
the_categoryAnyone who knows what’s gone wrong?
Graq, please do elaborate. I don’t want the simple version. I want the real deal.
Alright. Thanks both of you. So .htaccess -> index.php -> making the site :-). Got it!
So, I am guessing when the broswer “doesn’t find” a-test-page to begin with, the browser then automatically know that it should query .htaccess.
Is it the browsers interacion with the content of the CGI bin folder which tells the browser to look up the page when the page does not exist? Or does the CGI have nothing to do with this?
Alright. But how is this done? When my browser comes to example.com/a-test-post it queries the server for a file called just that, but then the server says back that there is no such file, and sends the browser to another file instead (i suppose that’s the way it goes). But which mechanism is responsible for this?
What exactly redirects the browser to the correct file?