necro1970
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GamePress] Dashboard displaying fuzzy text (gamepress)Yes, I could no longer change the Color Scheme too. Here is a temporary solution I found.
To change the color scheme, I also changed the add_action on 138:
from
add_action(‘wp_print_styles’, ‘gamepress_enqueue_css’);
to
add_action(‘wp_enqueue_scripts’, ‘gamepress_enqueue_css’);My theme returned to it’s setting of blue. However I did notice that the Nivo controls graphic (the little red circle) is still red.
This has been resolved. It is not a Nextgen Gallery issue but definitely one caused by the GamePress theme.
Thanks.
To correct the code, I changed the lines @ line 147:
Original –
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
Modified –
$title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageHi Alex,
Did you manage to duplicate the problem on your test server?
Forum: Themes and Templates
In reply to: [Gamepress] – Feeds don't work wellNever mind, looks like I will be forced to use this to get the game_reviews feed I want:
https://test.gameswarp.com/?post_type=gamepress_reviews&feed=rss2Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageIs there something I’m missing out that makes it work for you on your test server?
I forgot to mention that I configured Gamepress theme for “Select custom post types, that You want to include on the home page” to include “Game Reviews” and “Video”.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageHere are the links to the 5 posts on my test server.
Post 1 – https://test.gameswarp.com/?p=8
Post 2 – https://test.gameswarp.com/?p=5
Hello World – https://test.gameswarp.com/?p=1
Game Review 1 – https://test.gameswarp.com/?gamepress_reviews=game-review
Game Review 2 – https://test.gameswarp.com/?gamepress_reviews=game-review-1Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageYou don’t need my XML file at all.
Here are steps I did to repeat the problem in 5 minutes.
a. Create new test server.
b. Install WP and upgrade it to latest version 3.4.2.
c. Delete all plugins (I deleted Akismet and Dolly).
d. Install and activate Gamepress theme.
e. Create 2 posts with title “Post 1”, “Post 2”.
f. Create 2 game reviews with title “GR 1”, “GR 2”.
g. Set “Settings->Reading->Blog pages show at most” to 1.PS – At the end of step g, you should have 5 posts – Hello World, Post 1, Post 2, GR 1, GR 2 – in that particular order.
h. Now click on Older Posts until you get a 404 on /paged=4.
Here is the test server I created with 5 posts. You get a 404 as stated above.
Why is this happening? Because Hello World, Post 1, and Post 2 are normal posts whereas GR1 and GR2 are gamepress_reviews post_types.
The total number of posts is supposed to be 5, but WP only recognizes that there are a total of 3 posts.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageHere’s a temporary solution for me until GamePress is updated.
Disable the widget that shows reviews, news, and videos.
Change the a/m function to this:
function gamepress_query_post_type($query) { if(is_tag()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','nav_menu_item', 'gamepress_reviews', 'gamepress_video'); $query->set('post_type',$post_type); return $query; } if(is_paged()) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','nav_menu_item', 'gamepress_reviews', 'gamepress_video'); $query->set('post_type',$post_type); return $query; } }
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageI seem to have solved the problem for myself, although I have to check what the repercussions are.
I went to functions.php and under the function gamepress_query_post_type, I changed the code to remove the istag condition statement away. My final code became this:
function gamepress_query_post_type($query) { $post_type = get_query_var('post_type'); if($post_type) $post_type = $post_type; else $post_type = array('post','nav_menu_item', 'gamepress_reviews', 'gamepress_video'); $query->set('post_type',$post_type); return $query; }
Well, I’ll hit the documentation to see whether there is a better solution to the problem.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageThis explains why I got a 404 for the below:
I put the setting for “Settings->Reading->Blog pages show at most” to 1.
I then kept trying until I reached “/?paged=37″… which was still ok. The minute I type “/?paged=38” it gave a 404.
I then purposely “deleted” a new review into the trash. Everything got shuffled down one space, but still “/?paged=38” gave a 404.
I had exactly 37 posts… and 300+ reviews.
Please help to rectify this major bug for the Gamepress theme. In the meantime, I will tweak my installation to see what I can do with all these problems.
Thanks.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageHi Alex,
I started a new blog… reimported my 350+ articles and left them as they were as “posts”. I then installed PAGE-NAVI. I clicked on “Last page” and it sent me back to the very first article – no problem.
I then added 10+ game reviews. After I did that, I clicked on “Last page” and got a 404 there.
The theme has serious problems… did you account for # of posts + # of reviews? The $paged is no longer # of posts alone.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageHere’s the original query in index.php in Gamepress theme for sake of discussion –
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts( array( ‘post_type’ => array(‘post’, $include_reviews, $include_videos), ‘paged’ => $paged ) );
ATTEMPT#1
I deleted ‘post’ from the query line in index.php and still got the error at /paged=5. Here’s the changes I made.$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts( array( ‘post_type’ => array($include_reviews, $include_videos), ‘paged’ => $paged ) );
ATTEMP#2
I tried something else; I hardcoded paged to 5 and it worked… but obviously it showed the fifth page, but this time it died at /paged=6.$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts( array( ‘post_type’ => array(‘post’,$include_reviews, $include_videos), ‘paged’ => 5) );
What is the matter with pagination?
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageI enabled the kint debugger plug in and noticed that index.php never even executed at all. Somewhere else is causing a problem for me.
What I did was –
Immediately after get_header() in index.php, I set d(“Hello”).
I got a “Hello” for /?paged=4 but no “Hello” for /?paged=5 on a 404.
Forum: Themes and Templates
In reply to: [Theme: Gamepress] Can't go backwards beyond 6th pageNo, it did not. Take a look on my website… I changed to 10 posts per page and now it fails on /?paged=5