joynic
Forum Replies Created
-
I had to stop this plugins, until the problem is resolved.
thank you very much.
@Fresh-Media it doesn’t the whole .htaccess file gets emptied, only cleared part of the content. in my .htaccess file, there are some code like this:
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # protect wpconfig.php <files wp-config.php> Order deny,allow deny from all </files> <files .htaccess> order allow,deny deny from all </files>
after block an ip, then remove it, my .htaccess file content like this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
then my site can not be opened at all.
@Fresh-Media thanks for your reply, the WordPress version is 3.9.2
Forum: Fixing WordPress
In reply to: download problem rewrite class@keesiemeijer thank you very much:)
Using your code, I created a “faves” page for each user, it display the contents of the user’s favorite, the following link is working properly:
https://mydomain.com/user/xxx/faves/
but page 2 is broken, and return 404
https://mydomain.com/user/xxx/faves/page/2/
Here is my code…
<?php $favespage = get_query_var('faves'); if($favespage == 'faves' ) : ?> <?php $user = get_user_by( 'slug', get_query_var( 'author_name' ) ); $user_id = $user->ID; $bookmarked = get_user_meta( $user_id, 'i_bookmarked_topics', true ); if ( !is_array( $bookmarked) ) $bookmarked = array(); if ( $bm_query = new WP_Query( array( 'post__in' => $bookmarked,'posts_per_page' => 2, 'paged' => $paged ,'post_type' => array( 'post', 'topic', 'goods' ) ) ); if ( $bm_query->have_posts() ); ?> <?php while ( $bm_query->have_posts() ) : $bm_query->the_post(); ?> ............... <?php if (will_paginate()): ?> <div class="navigation"> <?php wp_pagenavi(); ?> </div> <?php endif; ?> <?php endif; ?>
Forum: Themes and Templates
In reply to: wp_list_categories() exclude not working anymore in 3.7?please try this
<ul> <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?> </ul>
replace ‘exclude=14,1,3,4,5,9’ with yours
Forum: Fixing WordPress
In reply to: wp_list_categories does not accept 'exclude' anymore.please try this
<ul> <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?> </ul>
replace ‘exclude=14,1,3,4,5,9’ with yours
Forum: Fixing WordPress
In reply to: wp_list_categories all of a sudden won't exclude a categoryreplace ‘exclude=14,1,3,4,5,9’ with yours
Forum: Fixing WordPress
In reply to: wp_list_categories all of a sudden won't exclude a categorysorry, please try this
<ul> <?php foreach(get_categories("orderby=name&orderby=count&order=DESC&exclude=14,1,3,4,5,9&hide_empty=0") as $category) {echo '<li class="cat-item cat-item-'.$category->cat_ID.'"><a href="'.get_category_link($category->cat_ID).'" title="'.$category->category_description.'">'.$category->cat_name.'</a></li>';} ?> </ul>
Forum: Fixing WordPress
In reply to: wp_list_categories does not accept 'exclude' anymore.this is my solution, replace <?php wp_list_categories();?> with:
-
<?php foreach(get_categories(“orderby=name&orderby=count&order=DESC&exclude=&hide_empty=0″) as $category) {echo ‘<li class=”cat-item cat-item-‘.$category->cat_ID.'”>cat_ID).'” title=”‘.$category->category_description.'”>’.$category->cat_name.’‘;} ?>
Forum: Fixing WordPress
In reply to: wp_list_categories all of a sudden won't exclude a categorythis is my solution, replace <?php wp_list_categories();?> with:
-
<?php foreach(get_categories(“orderby=name&orderby=count&order=DESC&exclude=&hide_empty=0″) as $category) {echo ‘<li class=”cat-item cat-item-‘.$category->cat_ID.'”>cat_ID).'” title=”‘.$category->category_description.'”>’.$category->cat_name.’‘;} ?>
Forum: Themes and Templates
In reply to: wp_list_categories() exclude not working anymore in 3.7?this is my solution, replace <?php wp_list_categories();?> with:
-
<?php foreach(get_categories(“orderby=name&orderby=count&order=DESC&exclude=&hide_empty=0″) as $category) {echo ‘<li class=”cat-item cat-item-‘.$category->cat_ID.'”>cat_ID).'” title=”‘.$category->category_description.'”>’.$category->cat_name.’‘;} ?>
Forum: Fixing WordPress
In reply to: Let users create a new custom taxonomy entry from frontendForum: Plugins
In reply to: [My Post Order] change number of posts per page@sorcrr can you tell me ? thanks
Forum: Plugins
In reply to: [Category Icons] Error with WordPress v3.5@jeegrobot sorry, maybe that should not be a problem of the code. it works perfectly with Chrome for me also.
@everyone pls thanks to the author of plugin:)
Forum: Plugins
In reply to: [Category Icons] Error with WordPress v3.5this is my solution…it works perfect…
in category_icons.php
on line 1047
from:
$wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS $wpdb->ig_caticons (cat_id INT NOT NULL ,priority INT NOT NULL ,icon TEXT NOT NULL ,small_icon TEXT NOT NULL , PRIMARY KEY ( cat_id ))”));
to:
$wpdb->query($wpdb->prepare(“CREATE TABLE IF NOT EXISTS %s (cat_id INT NOT NULL ,priority INT NOT NULL ,icon TEXT NOT NULL ,small_icon TEXT NOT NULL , PRIMARY KEY ( cat_id ))”, $wpdb->ig_caticons));
on line 1338
from:
$datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons”));
to:
$datas = $wpdb->get_results($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons”, $result));
on line 1360
from:
if ($row = $wpdb->get_row($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons WHERE cat_id IN($instr) ORDER BY priority DESC LIMIT 1”)))
to:
if ($row = $wpdb->get_row($wpdb->prepare(“SELECT cat_id, priority, icon, small_icon FROM $wpdb->ig_caticons WHERE cat_id IN($instr) ORDER BY priority DESC LIMIT 1”,0)))