Frumph
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: [Category problem] Posts from some categoryYou don’t need a loop. The loop is already created for you when you go to one of the archive.php category.php and taxonomy.php type template files that are called automatically
The ‘amount’ to display is handled in the settings -> reading
the archive.php can facilitate all of them under one roof. to which case you can grab almost any archive.php from any theme and take a look at how it’s done
mine is here:
https://github.com/Frumph/comicpress/blob/master/archive.phpWhich is a bit more uhm, extravagant then most.
Forum: Fixing WordPress
In reply to: [Category problem] Posts from some categoryThis really has to be a case of #yourdoingitwrong
Please, tell me .. is it for the archive.php ? and your goal is to limit it to 3 posts displayed at a time avoiding the settings -> reading of 10 at a time?
What’s the goal here
Forum: Fixing WordPress
In reply to: [Category problem] Posts from some category<?php if (is_category()) { $theCatID = get_term_by( 'slug', $wp_query->query_vars['category_name'], 'category' ); if (!empty($theCatID)) $theCatID = $theCatID->term_id; if (isset($wp_query->query_vars['cat'])) $theCatID = (int)$wp_query->query_vars['cat']; } $catquery = new WP_Query( 'cat='.$theCatID.'&posts_per_page=3' ); while($catquery->have_posts()) : $catquery->the_post(); ?>I’m assuming you’re using the archive.php for this, otherwise say something.
If you add this bit of code to check the query_var’s for the ?(&)cat= and then have the wp_query use that catID it will use it for the query
Or, if anything you can see how it’s done in this example
..writing from memory so you probably want to adjust that a little
Forum: Fixing WordPress
In reply to: Invalid arguments passed (Help! )Not to mention on that one line for the get_post_meta for that, implode is expecting an array and what’s being passed to it is a string
See this:
$portfolio_select = get_post_meta($post->ID, 'codeus_portfolio_select', TRUE) ? get_post_meta($post->ID, 'codeus_portfolio_select', TRUE) : '';The , TRUE part is saying return a string .. so that implode line is reading a string instead of an array like it wants
Forum: Fixing WordPress
In reply to: Invalid arguments passed (Help! )If the post doesn’t have codeus_portfolio_select as meta data for it, it will cause that error; frankly any of them to be honest.
Looks like your code is not validating whether or not that template has the meta information in it before it runs.
Forum: Fixing WordPress
In reply to: Child Theme worked for a while and now it doesn't!Probably any minification you do to the css files might cause it; but not necessarily wp-supercache.
Since I cannot know what you did, cannot say for any certainty beyond what the error’s show now…
Forum: Fixing WordPress
In reply to: Change text at bottom of website^ that’s the style champ, it does not contain that information.
Forum: Fixing WordPress
In reply to: Child Theme worked for a while and now it doesn't!CSS is parsed going top down.
If there’s an error in your CSS anything below the parse error will *not* be executed.
Which is what happened in this case.
You can see the problem with a CSS Validator
Forum: Fixing WordPress
In reply to: Links to older blog posts aren't workingSet your settings to display 10 blog posts, in the settings -> reading and tell me if it works.
If you have to set that value someplace else for the amount of posts on the home page I can tell you that code-wise it’s not written properly and the author needs to fix it by setting the value in the pre_get_posts not just the loop.
While I understand you don’t know anything about code or editing code this is something you would discuss with the theme author.
Also since it’s a studiopress theme and not available on the repository, you pretty much have to talk to them.. since we can’t just open it up and look at it to help you..
Forum: Fixing WordPress
In reply to: Any hack how to make #wrapper opaque but post images solid?use a background PNG image for the #wrapper that is opaque then everything above it (in the layer/segment) will stay the same and not use the filter/opacity from the css.
Forum: Fixing WordPress
In reply to: Wp-admin problemthe stylesheet is loading like this:
<link rel="stylesheet" href="//st.prntscr.com/2014/09/23/0518/css/main.css"/>It’s missing the http: part of it.
Might be because of the minification that you have going on.
Forum: Fixing WordPress
In reply to: Change text at bottom of websiteThe theme you are using is from studiopress, since we don’t have that theme available on the repository there is no way for us to look at it and tell you where things are.
You will have to contact them.
Also, while your in the settings -> editor – … upper right is a drop down box, make sure you’re looking at the lucious theme there and not a child theme, which would explain why you don’t see it.
Forum: Fixing WordPress
In reply to: Menu Links Missing URL, Show As "Pending" in AdminDisable all plugins (clear and disable cache as well) and see if it continues. It’s very well possible you have a plugin (or) the theme you are using is adding scripts to the head in places it’s not supposed to be that is not compatible with the latest WordPress version of jquery/scripts that it has which is causing those mishaps.
Most likely a plugin that dequeues a script and then enqueues their own; which causes this meltdown as well… which is the most common thing.
but, then again i’ve seen some users who added a bunch of browser cache code to their site to speed it up which could mean your browser didn’t update the scripts and trying to use old ones, .. for those you need to use the command in your browser to load the site fresh without looking at cache, in firefox it’s control-R ..
So, there are quite a few things that could cause it; but … the first step is clear your browser cache; second step is to disable all the plugins (then try it), switch the theme to a base WordPress theme (then try it)
find out where the conflict is coming from
Forum: Fixing WordPress
In reply to: Clarification of structure (particularly template structure)If i’m reading correctly:
—- Templates for the blog pages/home pages/front page
index.php
front-page.php
home.php
—-
You are correct on clicking on the archive page, it does
index.php (or)
if (exists) archive.phpThe difference is the index.php is the catch-all if none of the others are found.
you could pretty much make a theme with just bare minimals with the index.php handling everything and a couple others
the proper term for a page where posts are displayed .. “the posts page / the blog page” which is denoted as such in the settings -> reading .. they are kind of the one and same in terminology
The posts page refers to the page that the blog loop is being executed on.
Forum: Themes and Templates
In reply to: [ComicPress] Laundry list of problemsSetup two chapters, one for the front page comic one for the side comic, set the navigation to be ‘in chapter’ only via the comic->config
In the comic -> config you can choose which chapter to display on the home page.
done.