Joshua Sigar
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: No Comments Except for Logged In UsersThis kind of thing, may be easier/possible to solve if I have full access to the installation, where you could print out stuff, etc.
So, maybe ask your programmer friend to dive in, or you could give me access if you trust me enough. my email is alphaoide at gmail dot com.
Forum: Fixing WordPress
In reply to: No Comments Except for Logged In UsersProbably some corrupted files? Try deleting and re-uploading related files.
Forum: Plugins
In reply to: Stripping the_content() – but only one categoryAlso, in_category()
https://codex.www.ads-software.com/Template_Tags/in_categoryForum: Fixing WordPress
In reply to: Is There A Limit Query Functions & Loop Calls?I don’t get it. I don’t know what you want. I don’t see a pattern.
So, next month, how does the page look like?
well, then, I guess you have to remove all code used by plugins. Then start adding it one by one until you get the error. I’m not gonna look into those plugins you list–too much.
You would disable plugin one by one until you dont get that error below. No need to delete any code.
WordPress database error: [Not unique table/alias: ‘wp_post2cat’]…
Getting “call to undefined function” as you disable plugins is normal. So, do you know which plugin causes the error you mentioned?
Hmm, I know why it gave that error but no clue what caused it.
Disable ALL plugins one by one. It could be plugin ’cause I have same code with no error.
Let me see the first problem first. So, is it that “random post” which gives you that error? If not, well, then find out which plugin. After you find it, give me the link to that plugin so I could find what the author did wrong.
I believe (since I’ve never really installed it) the following plugin lets you specify different number of posts per page for different views.
https://mattread.com/projects/wp-plugins/custom-query-string-plugin/Step 1.
Go to Options > Reading, and set “Show at most” at “1”Step 2.
Replace your line below…<?php query_posts('cat=1,2,3,4,5,7&showposts=1'); ?>
… with the following…
<?php $wp_query->set('cat', '1,2,3,4,5,7'); ?>
<?php query_posts(''); ?>Step 3.
Add the page navigation. Below is taken from default theme
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next Entries »') ?></div>
</div>
Step 4.
Didn’t work for you? Well, then you forgot to tell me something.nm. be back.
The code below will work ($page will have the correct value of page number), if you place it before any of the custom loop.
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
Anyway, there is solution, if you just pastebin your full code, and tell me what you want to accomplish.
Forum: Fixing WordPress
In reply to: Is There A Limit Query Functions & Loop Calls?Oh, I thought the three loops are fixed. So, what is it, in general, you want to display? We could probably come up with better way so that you don’t have the touch the code again after.
Forum: Fixing WordPress
In reply to: Is There A Limit Query Functions & Loop Calls?Not too bad at all, this is nothing. Can’t figure it out a better way.