pshah
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderIn none of the above mentioned index.php the following lines of code exist:-
query_posts( ‘orderby=title&order=DESC’ );
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderWhen you say template’s index.php.. whcih of the below mentioned file is it.
I have multiple index.php at the following locations:-
– wordpress/index.php (empty)
– wordpress/wp-admin/index.php
– wordpress/wp-content/index.php
– wordpress/wp-content/themes/index.php
– wordpress/wp-content/themes/suffusion/index.php
– wordpress/wp-content/plugins/index.phpPlease let me know on which particular index.php, the above change should be made.
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderPlease let me know that in which php file in the WP directory, will I find
query_posts( ‘orderby=title&order=DESC’ );
which needs to be replaced by:-
query_posts( ‘orderby=menu_order&order=ASC’ );
Please guide me as I have no idea on php.
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderHi,
Even this order will be ASC or DESC.
I need to show the oldest post first and the latest at the end.Please let me know about the location and the file and which file eed to change for this as I have no clues on php.
Forum: Fixing WordPress
In reply to: changing the post order, writing query_posts()Hi Rev Voodoo,
Please guide me in this regard.
Forum: Fixing WordPress
In reply to: changing the post order, writing query_posts()Even the archive.php looks something like this:-
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: https://codex.www.ads-software.com/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/get_header(); ?>
<div id=”container”>
<div id=”content” role=”main”><?php query_posts( array(
// Set query
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
// Enabled paging
‘paged’=> ( get_query_var(‘paged’) ? get_query_var(‘paged’) : 1 ),
)); ?><?php
/* Queue the first post, that way we know
* what date we’re dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if ( have_posts() )
the_post();
?><h1 class=”page-title”>
<?php if ( is_day() ) : ?>
<?php printf( __( ‘Daily Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( ‘Monthly Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date(‘F Y’) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( ‘Yearly Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date(‘Y’) ); ?>
<?php else : ?>
<?php _e( ‘Blog Archives’, ‘twentyten’ ); ?>
<?php endif; ?>
</h1><?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();/* Run the loop for the archives page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-archives.php and that will be used instead.
*/
get_template_part( ‘loop’, ‘archive’ );
?></div><!– #content –>
</div><!– #container –><?php get_sidebar(); ?>
<?php get_footer(); ?>I added the code that is mentioned in bold above. But this too had no impact on the order of the posts. It is same as latest at the top and oldest at the bottom. My requirement is excat opposiute of it
Forum: Fixing WordPress
In reply to: changing the post order, writing query_posts()Hi Rev Voodoo,
Thanks for your repsponse.
I have a category.php at the following path:-
C:\Inetpub\wwwroot\wordpress\wp-content\themes\twentytenI do not see anything like <?php if (have_posts()) : ?> in the same.
The code for the same is:-<?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”><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(); ?>Please let me know on where should I put the code that you have mentioned.
Thanks.
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderHi Alphawolf,
even this order will be ASC or DESC.
I need to sho=w the oldest post first and the latest at the end.Please let me know anout the location and the file whcih I need to change for this as I have no clues on php.
Thanks.
Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderHi Aplhawolf,
Thanks for the immediate response.
I am very much new to wordpress adn could not really understand the content of thsi link above.Can u please guide me on where do I need to do this change (I mean in which file).
Thanks again.
Forum: Fixing WordPress
In reply to: how to change the display of categoryIt is resolved.
You have that option when you draga and drop categories in the widget area.Forum: Plugins
In reply to: [Plugin: Admin Management Xtended] Post orderHi,
The post order does not work for me.
I want to cahgner tyhe default order (latest post at the top) to the oldest post at the top.
Please suggest me a fix for this.
I have installed the admin-management-plugin but the post order does not seem to work for me.
Forum: Themes and Templates
In reply to: change in the category lookHi Root,
Thanks for immediate response.
I am pretty much new to wordpress and could not really get what excatly needs to be done.Can you please elaborate on how do I go about installing a java script menu and where will the change be.
Forum: Fixing WordPress
In reply to: Links in theposts not workingYes keesiemeijer.
This did work.
Thanks a bunch for all your help and support.
It was really nice talking to you.Forum: Fixing WordPress
In reply to: Links in theposts not workingI have changed the code in loop.php from:-
<?php elseif ( in_category( _x(‘asides’, ‘asides category slug’, ‘twentyten’) ) ) : ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>><?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
<div class=”entry-summary”>
<?php the_excerpt(); ?>
</div><!– .entry-summary –>
<?php else : ?>
<div class=”entry-content”>
<?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?>
</div><!– .entry-content –>
<?php endif; ?>to
<?php /* How to display posts in the asides category */ ?>
<?php elseif ( in_category( _x(‘asides’, ‘asides category slug’, ‘twentyten’) ) ) : ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class(); ?>><?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
<div class=”entry-summary”>
<?php the_content(); ?>
</div><!– .entry-summary –>
<?php else : ?>
<div class=”entry-content”>
<?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?>
</div><!– .entry-content –>
<?php endif; ?>But, even after this, the problem persists.
Kindly validate if I have amde the change correctly.
Thanks a bunch for all your supportForum: Fixing WordPress
In reply to: Links in theposts not workingHi,
In my theme’s archive.php or category.php I didnot find anything similar. Here is the code:-
category.php:- (at C:\Inetpub\wwwroot\wordpress\wp-content\themes\twentyten)
<?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”><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(); ?>archive.php (at C:\Inetpub\wwwroot\wordpress\wp-content\themes\twentyten)
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* Learn more: https://codex.www.ads-software.com/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/get_header(); ?>
<div id=”container”>
<div id=”content” role=”main”><?php
/* Queue the first post, that way we know
* what date we’re dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
if ( have_posts() )
the_post();
?><h1 class=”page-title”>
<?php if ( is_day() ) : ?>
<?php printf( __( ‘Daily Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( ‘Monthly Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date(‘F Y’) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( ‘Yearly Archives: <span>%s</span>’, ‘twentyten’ ), get_the_date(‘Y’) ); ?>
<?php else : ?>
<?php _e( ‘Blog Archives’, ‘twentyten’ ); ?>
<?php endif; ?>
</h1><?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();/* Run the loop for the archives page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-archives.php and that will be used instead.
*/
get_template_part( ‘loop’, ‘archive’ );
?></div><!– #content –>
</div><!– #container –><?php get_sidebar(); ?>
<?php get_footer(); ?>