Thank you Radu,but it is not about the url.I am talking about the page title that’s shown in the browser.
Thank you Lucian,I tried your code as below,but it won’t work,the featured title will be like”POST NAME | | SITE NAME”
<title><?php if ( is_front_page()) { bloginfo(‘name’); ?> – <?php bloginfo(‘description’); }elseif(is_single()){wp_title(”);?> | <?php $category = get_the_category(); if ($category[0]->cat_name!=’Featured’) {echo $category[0]->cat_name; }
?> | <?php bloginfo(‘name’); }else {
echo trim(wp_title(”,0));
if ( $paged >= 2 || $page >= 2 )
echo ‘ – ‘ . sprintf( __( ‘第%s页’ ), max( $paged, $page ) );
echo ‘ | ‘ ;
bloginfo(‘name’);
} ?></title>
-
This reply was modified 11 years by
winnieji.
the title code I used in header.php is :
<title><?php if ( is_front_page()) { bloginfo(‘name’); ?> – <?php bloginfo(‘description’); }elseif(is_single()){wp_title(”);?> | <?php $category = get_the_category();echo $category[0]->cat_name;?> | <?php bloginfo(‘name’); }else {
echo trim(wp_title(”,0));
if ( $paged >= 2 || $page >= 2 )
echo ‘ – ‘ . sprintf( __( ‘绗�%s椤�’ ), max( $paged, $page ) );
echo ‘ | ‘ ;
bloginfo(‘name’);
} ?></title>
I know adding a sentence like”If it is featured,show original cateory” or something will do the magic.Just don’t know what exactly it is:)
Hi,I have the basic html knowledge,so could you pls just point the direction?
Thank you so much!
thanks ,that code helps .But what I wanted is a numbered pagination .Will that be possible?Is using template with article list with module 9 chosen the only way? Blocks can’t have numbered pagination?
Thank you.
The load more button works but no numbered pagination after next prev ajax selected.
Pagination for block 6 on homepage is still not working .No plugin is active except for VC and no cache used .My site:http://www.managerreads.com.
-
This reply was modified 11 years by
winnieji.
Thank you for the reply ChriS.But for me I only want to rewrite the title, using seo plugin is a so much waste. And,I don’t like that plugin:).I don’t think it is better for SEO than simply messing with <title> </title> in header.
-
This reply was modified 11 years by
winnieji.
I already had this code below which can have the page number on title when there are page lists:
<title><?php
global $page, $paged;
$site_description = get_bloginfo( 'description', 'display' );
if ($site_description && ( is_home() || is_front_page() )) {
bloginfo('name');
echo " - $site_description";
} else {
echo trim(wp_title('',0));
if ( $paged >= 2 || $page >= 2 )
echo ' - ' . sprintf( __( '第%s页' ), max( $paged, $page ) );
echo ' | ' ;
bloginfo('name');
}
?></title>
But don’t know how to make the title echo category name.
-
This reply was modified 11 years by
winnieji.
another question:is there a way to change the sequence of the featured? The default is by freshness , the latest replace the last main big one.thanks.
Problem solved myself.
The EXCERPT LENGTH box applies to rss feed excerpt only and Block 6 is made of Module 9:)
I also tried messing with formatting.php under the wp-inculdes folder with no luck.
hi,how to rewrite <title>…</title>for the homepage? The defualt one is “Newspaper|Subhead”,I want to change it to “Newspaper-Subhead” while the other pages keep using the format of “article title|Newspaper”.
I know the code below will work out ,but not sure if it’s appropriate for this theme.As I can see ,the theme has already changed the default page title “Newspaper|article title” of wordpress,but don’t know if there is a consideration for keywords and description auto generation which the code below covers.
<title><?php if (is_home() || is_front_page() ) { ?><?php } else {?><?php wp_title(”); ?> | <?php } ?></title>
<?php if (is_home() || is_front_page()){
$description = “”;
$keywords = “”;
} elseif (is_single()){
if ($post->post_excerpt) {
$description = $post->post_excerpt;
} else {
$description = substr(strip_tags($post->post_content),0,220);
}$keywords = “”;
$tags = wp_get_post_tags($post->ID);
foreach ($tags as $tag ) {
$keywords = $keywords . $tag->name . “, “;
}
}
$description=strip_tags($description); ////screening out HTML、PHP tags
?>
<meta name=”keywords” content=”<?=$keywords?>” />
<meta name=”description” content=”<?=$description?>” />
-
This reply was modified 11 years by
winnieji.
Problem solved ,I can see register now .But seems that login and register are bundled together.Is there a way to separate them?
Yeah I know that option should switched on .What I mean is where to show the register form like the login one.I know by defualt wordpress can’t do this. Don’t know if I make myself clear ,thx.
It’s great to have a login form and the interface is cool(not like the defaut wp one).But where is the register form:)
Thank you.
OK,problem solved ,thanks.
ok ,a mistake ,link can be set .But the problem is that the text stacks.Seem that there is a text length limit.So the question is how to make the FOOTER COPYRIGHT TEXT stay in one line instead of beginning a new line when words hits limits .THx.
-
This reply was modified 11 years by
winnieji.
hi ,how to set a link to the FOOTER COPYRIGHT TEXT. Thanks.
My question is do I need to install a plugin to use TinyMCE?
Thank you for your timely reply.
Thank you.
1.about the TinyMCE,do I have to install the plugin?
2.not this one .The logo I mentioned is the one with a loop sign at left:)