Kapil Chugh
Forum Replies Created
-
Forum: Hacks
In reply to: $paged vs $pageDo you know we can split a post into multiple pages just by writing
<!–nextpage–> in post.So if we have a very long post we can divide that post into pages.So $page is used to maintain that count.// The $paged global variable contains the page number of a listing of posts.
// The $page global variable contains the page number of a single post that is paged.I hope it will be cleared now.
Forum: Hacks
In reply to: Remove text links from Admin Panel – PostsI don’t think so it is possible to change it without changing core code.
Either you can hide whole form using jquery.
Please tell me if you get any solution.
Forum: Hacks
In reply to: tinymce in a pluginYou can also try this plugin
Forum: Fixing WordPress
In reply to: exporting from MovableTypeI also had the same problem.
So at that time i installed my live database and MT code on my local server and then exported a file.
Forum: Fixing WordPress
In reply to: Remove author name for the postFor this you need to change your functions.php
Replace your twentyten_posted_on function with this function
function twentyten_posted_on() {
printf( __( ‘<span class=”%1$s”>Posted on</span> %2$s ‘, ‘twentyten’ ),
‘meta-prep meta-prep-author’,
sprintf( ‘<span class=”entry-date”>%3$s</span>‘,
get_permalink(),
esc_attr( get_the_time() ),
get_the_date()
)
);
}Forum: Fixing WordPress
In reply to: How to show the posts list in menu – widget?You can use this plugin
https://www.ads-software.com/extend/plugins/select-featured-posts/This plugin gives you option to select featured post and you can display it in widget.
Forum: Fixing WordPress
In reply to: Use Two Templates in one themeI think WordPress default theme comes with sidebar on RHS.Which version of wordpress you are using?
Forum: Fixing WordPress
In reply to: Help! I can't get comments to display on my main page.By default there is no provision to show comments on main page.You will find all comments on article page.
It is also not recommended to show comments on home page.Because if you have 100 comments in one post then you can think about length of page and also about other articles.Forum: Fixing WordPress
In reply to: Use Two Templates in one themeWhich templates you are talking about? Can you please explain it?
Forum: Fixing WordPress
In reply to: can't add new or edit on localhostThere is no need of compilation or something else. Download a fresh folder again from www.ads-software.com and copy two files in your current directory.
Forum: Fixing WordPress
In reply to: my main site wont show up hellpppp plzby default it is executing .html file.if you give index.php in your url
https://www.cobia101.com/index.php then it worksso either delete or rename index.html or ask your hosting company to do so.
Forum: Fixing WordPress
In reply to: can't add new or edit on localhostThese two files exists in wordpress/wp-admin/ folder.Please check it there.
Forum: Hacks
In reply to: post excerptadd this code in your functions.php
add_filter('wp_trim_excerpt', custom_excerpt); function custom_excerpt($text) { $text = str_replace('[...]', '<a href="' . get_permalink() .'">..complete post</a>', $text); return $text; }
Rather than defining this code on each page you should define this code in a function and call that function
for eg.in functions.php
function get_page_image() {
if (is_home()) {
$topic = ‘page.png’;
} else if ( is_single() ) {//article page
$topic = ‘page1.png’;
} else if ( is_page() ) {
$topic = ‘page2.png’;} else if ( is_category() ) {
$topic = ‘page3.png’;} else if ( is_tag() ) {
}
return $topic;
}and call this function on header.php
Forum: Fixing WordPress
In reply to: Unable to get current page IDgr8.