silafu
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Custom profile page – email not updatingReverted back to 3.0.1. The email field gets updated. Weird thing…
Forum: Plugins
In reply to: Disable quantity off WP-ecommerceI’m interested too. Have you found a solution?
Forum: Fixing WordPress
In reply to: Link to all posts of current AuthorThis one
<?php $author = get_the_author(); echo get_author_posts_url( ).$author; ?>
No sarcasm, only sincerity ??
Forum: Fixing WordPress
In reply to: Link to all posts of current AuthorThis one is clean ??
Forum: Fixing WordPress
In reply to: .htacces redirect a page to a subpageThank you ClaytonJames.
I will use your solution but I would like to know why that htaccess redirect sets up a loop. It would be good for the learning process ??Forum: Fixing WordPress
In reply to: Link to all posts of current AuthorThis is not very clean but it works:
<a href="<?php echo get_option('siteurl'); ?>/author/<?php the_author_meta( 'user_login' ); ?>">View all articles by this author</a>
Forum: Fixing WordPress
In reply to: dynamic menu highlighting: text colour matching to pageYou can achieve this with css. Each menu item has a unique class, like
“page-item-3” (3 is the id of the page).
Let’s say “Home” has the id “3”.
In your css you should add .page-item-3 a:hover {background-color:red}
For this to work your links in the main menu should be displayed as blocks.For further help please provide a url of your website.
Forum: Fixing WordPress
In reply to: .htacces redirect a page to a subpageThanks for your tips.
Installing a plugin just to achieve a couple of redirects doesn’t sound that good to me.
I’m using custom menus but if I add a custom link that points “About” to “About me” i will loose highlighting of the parent page (current-page-ancestor class) when visiting “Contact” page (that is also a childpage of “About”)Forum: Fixing WordPress
In reply to: Link to all posts of current Author<?php if(isset($_GET['author_name'])) { $curauth = get_userdatabylogin(get_the_author_login()); } else { $curauth = get_userdata(intval($author)); } get_author_posts_url($curauth->ID); ?>
Try this
Forum: Fixing WordPress
In reply to: .htacces redirect a page to a subpageBecause the parent page is an empty page with multiple subpages.
I’m using wp-menus and i could add a custom link but I don’t want to loose the parent/child highlighting as the parent page has multiple subpages.
Is there other solution than htaccess redirect or wp-redirect?
Forum: Fixing WordPress
In reply to: URL not changing after setting permalinkVerify the .htaccess on the server. See if there’s something like:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On
If there’s not make sure .htaccess is writable.
Forum: Plugins
In reply to: [plugin Qtranslate] get the unfiltered titleIt is weird (for me) that
<?php $post_id = 193; $queried_post = get_post($post_id);echo $queried_post->post_title;?>
outputs
<!--:ro-->title ro<!--:--><!--:en-->title en<!--:-->
and
<?php echo $post->post_title;?>
within the loop outputs
title ro
(ro is the selected language)Any help would be very much appreciated.
Forum: Fixing WordPress
In reply to: Page name and Category name are the same… url breaksWelcome!
Forum: Fixing WordPress
In reply to: Page name and Category name are the same… url breaksTry replace all that with this:
<?php get_header(); ?> <div id="content-body"> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?> <h1>Activities/h1> <?php $my_query = new WP_Query('page_id=457'); while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_content('');?> <?php endwhile; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
Should work as expected if put it in category-activities.php
Or is there something that i don’t understand ??
Forum: Fixing WordPress
In reply to: Page name and Category name are the same… url breaksPost here please the content of category-aa.php.