Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8309359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:05:36+00:00 2026-06-08T19:05:36+00:00

I’m trying to create my own theme, called Conservatoire. For that I’ve first added

  • 0

I’m trying to create my own theme, called “Conservatoire”.
For that I’ve first added the style.css with these informations :

/*
Theme Name: Conservatoire
Theme URI: http://wordpress.org/
Description: Conservatoire
Author: Thoma Biguères
Version: 1.0
Tags: black, blue, white, two-columns, fixed-width, custom-header, custom-background,     threaded-comments, sticky-post, translation-ready, microformats, rtl-language-support, editor-style, custom-menu (optional)

License:
License URI:

General comments (optional).
*/

So nothing too tricky here i think.
After that I added two files. An index.php :

<?php
/**
* The main template file.
*
* @package WordPress
* @subpackage Conservatoire
*/

get_header(); ?>

<!-- Add your site or application content here -->    

<!-- JavaScript at the bottom for fast page loading: http://developer.yahoo.com/performance/rules.html#js_bottom -->

<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.7.2.min.js"><\/script>')</script>

<!-- scripts concatenated and minified via build script -->
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- end scripts -->

<!-- Asynchronous Google Analytics snippet. Change UA-XXXXX-X to be your site's ID.
     mathiasbynens.be/notes/async-analytics-snippet -->
<script>
    var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
    (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
    g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>

Until here everything works. After that, I added a front-page.php which is my static home page :

<?php
/**
* The template for displaying Front page.
*
* @package WordPress
* @subpackage Conservatoire
*/

get_header(); ?>

<?php
$page = get_page_by_title('Accueil');
?>

Everything is still fine.
And now things are tricky. I’m trying to add a category-{slug}.php page. So I’ve created a page category-membre.php which looks fine for me :

<?php
/**
* T he template for displaying Front page.
*
* @package WordPress
* @subpackage Conservatoire
*/

get_header(); ?>

<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li class="cadre">
    <div class="imageCadre">
        <?php echo(get_image());?>
    </div>
    <h4><?php echo(get_the_title());?></h4>
    <p><?php echo(get('information_globales_petite_description'));?></p>
    <a href="" class="plusinfo">Lire la suite</a>

</li>
<?php endwhile; ?>
<!-- post navigation -->
<?php else: ?>
<!-- no posts found -->
<?php endif; ?>


</ul>
</body>
</html>
?>

But when I try to go on the page “localhost/Site/category/membre then I find myself on the 404 page …

Does someone has any idea ?

Thanks

EDIT : I didn’t changed the permanent link so category base is empty (i guess it’s category then isn’t it ? )

Here this one was my httaccess but I deleted it and it still gives me the same error :

NEW EDIT : this is the actual .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Sites/Association%20CNMP/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /Sites/Association%20CNMP/index.php [L]
</IfModule>

# END WordPress
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:05:38+00:00Added an answer on June 8, 2026 at 7:05 pm

    Hey thanks for everything,

    I managed to make permalinks work. I don’t really know how thoug.I know I had to set mod_rewrite of the httdconfig of apache to Ok (erase the # before the Launch mod_rewrite). And after that do some stuff. There is one thing i don’t understand though !

    How come my actual htaccess looks like this :

    # BEGIN WordPress
     <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /Sites/AssociationCNMP/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /Sites/AssociationCNMP/index.php [L]
    </IfModule>
    
    # END WordPress
    

    but is actually working with cat/membre ?
    I don’t see the cat in the htaccess file. So how can he know he has to go to another one ?

    Thanks for your help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I am doing a simple coin flipping experiment for class that involves flipping a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.