wprock
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Entire Blog Down after update to 3.5.1are you deleted the wp-config.php file? If you have backup of this file then upload in root folder via FTP or Cpanel.
Forum: Fixing WordPress
In reply to: Making Next Page Workwelcome
Forum: Fixing WordPress
In reply to: Making Next Page Work<div id="blog_content"> <?// Fix for the WordPress 3.0 "paged" bug. $paged = 1; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } if ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); } $paged = intval( $paged ); $args = array( 'post_type' => 'post', 'posts_per_page' => 5, 'paged' => $paged ); $the_query = new WP_Query( $args ); while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="blog_post"> <? if ( has_post_thumbnail() ) : ?> <a href="<? the_permalink(); ?>"> <? the_post_thumbnail('sm_thumb', array( 'class' => 'excerpt_thumb' ) ); ?> </a> <? else: ?> <a href="<? the_permalink(); ?>"><img class="excerpt_thumb" src="<? bloginfo('template_url'); ?>/img/default_post_thumb.jpg"></a> <? endif; ?> <div class="post_block"> <h1 class="font"><a href="<? the_permalink(); ?>"><? the_title(); ?></a></h1> <div class="meta">by <? echo get_the_author(); ?> on <? echo get_the_date(); ?> in <ul class="excerpt_cats"><? echo get_the_category_list(); ?></ul></div> <? the_excerpt(); ?> </div> </div> <? endwhile; wp_pagenavi(); wp_reset_query(); ?> </div>Forum: Fixing WordPress
In reply to: Can't log in to my site any moreOr you can edit the file. Download the file via FTP and remove the extra white spaces from bottom of the file. Then upload the file again.
Forum: Fixing WordPress
In reply to: Making Next Page Work<?
endwhile;
wp_pagenavi(array(
‘query’ => $the_query
));
wp_reset_postdata();
?>will be
<?
endwhile;
wp_reset_query();
wp_pagenavi();?>
Try once this
Forum: Fixing WordPress
In reply to: Making Next Page Workare you using custom query function like query_posts or WP_Query()? After the while loop put this function wp_reset_query()
Forum: Fixing WordPress
In reply to: Blog DisappearedSome how wp-config.php file is deleted from server. Please check once the root files once.
Forum: Fixing WordPress
In reply to: How to get URL links to workPlease check once permalink structure from admin. .htaccess is existing in the root?
Forum: Fixing WordPress
In reply to: Custom post types and categoriestaxonomy.php
taxonomy-{taxonomy}.php
taxonomy-{taxonomy}-{term}.phpif review is a taxonomy then create this taxonomy-{taxonomy}.php and paste the code from archive.php or category.php file
Forum: Fixing WordPress
In reply to: Custom post types and categories“review” is a taxonomy here?
Forum: Fixing WordPress
In reply to: /page/2/ error – page not foundsetup the permalink structure properly and add this “wp_reset_query();” after this “endwhile;”
Forum: Fixing WordPress
In reply to: Custom post types and categoriescreate a new file single-{posttype}.php and copy the code from index.php and paste there.
If you need a Custom Plugin for it.
Forum: Fixing WordPress
In reply to: How to activate a widget at sidebar without use WP-ADMIN->Widget UIthis is not working:
require_once(ABSPATH."wp-includes/widgets.php"); $my_test_widget_id = "recent-posts"; $sidebars_widgets = wp_get_sidebars_widgets(); print_r($sidebars_widgets); install_my_test_widget(); function install_my_test_widget() { global $wp_registered_sidebars, $my_test_widget_id; $sidebar = 'sidebar-1'; // These are the widgets grouped by sidebar $sidebars_widgets = wp_get_sidebars_widgets(); if ( empty( $sidebars_widgets ) ) $sidebars_widgets = wp_get_widget_defaults(); // for the sake of PHP warnings if ( empty( $sidebars_widgets[$sidebar] ) ) $sidebars_widgets[$sidebar] = array(); # Add the widget to the sidebar if not already present if(!in_array($my_test_widget_id, $sidebars_widgets[$sidebar])) { $sidebars_widgets[$sidebar][] = $my_test_widget_id; wp_register_sidebar_widget('recent-posts','Recent Posts','recent-posts'); wp_set_sidebars_widgets( $sidebars_widgets ); } }Forum: Fixing WordPress
In reply to: How to activate a widget at sidebar without use WP-ADMIN->Widget UIAny one have not idea?