Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

htaccess rewrite WordPress

  • SOLVED

I wanna change the link http://anime-exceed.com/?genre=action to
http://anime-exceed.com/genre/action
using .htaccess fast solution please

Answers (6)

2010-10-08

John Cotton answers:

Hi Marvin

If you're happy modifying the category.php file, try this (this is the one from the TwentyTen theme, but you'll get the idea:



<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/

get_header();

?>

<div id="container">
<div id="content" role="main">

<?php
// Here's the mod
$pageID = 0;

switch(get_cat_name($cat)) {
case "Dramatisc":
$pageID = XXXXX; // replace with the id of the page
break;
}


if($pageID >0) {
$page = get_page($pageID);
echo "<div>". $page->post_content . "</div>";
}

// End of mod
?>

<h1 class="page-title"><?php
printf( __( 'Category Archives: %s', 'twentyten' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '<div class="archive-meta">' . $category_description . '</div>';

/* Run the loop for the category page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-category.php and that will be used instead.
*/
get_template_part( 'loop', 'category' );
?>

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

<?php get_sidebar(); ?>
<?php get_footer(); ?>




Marvin Shaker comments:

This is What I Want http://www.crunchyroll.com/coffee-prince

Scroll Down to Cast Characters this is what I want.


Marvin Shaker comments:

I'm Testing The Knowledge of php you Guys Have!

I Have Bigger Things I Need. Will Be Paying 50-$200.


John Cotton comments:

<blockquote>This is What I Want http://www.crunchyroll.com/coffee-prince
</blockquote>

Sorry Marvin, I'm not clear about how that content exists in your WP install. Is each photo a separate page?

john


Marvin Shaker comments:

The Picture Will be Something Like Echo Post Thumbnail

I Have Another Way,

How About If I Made Sub Category In the Category of the Series and them their!?

I Want The character Sub category to show the thumbnail but i dont want it to be listed with the others

My English isnt good hope you get it ill make a screenshot


Marvin Shaker comments:

Here the Screenshot