laulief
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Custom Post Order] How to move to another pagePlease create this option, it would very very helpful. Right now I am trying to move a post to another page by adjusting the date, but that won’t work in combination with the plugin ??
Forum: Plugins
In reply to: [Helpful] How can I show the total of votes?Thank you so much! I am going to try it out soon.
Forum: Plugins
In reply to: [Brilliant Web-to-Lead for Salesforce] delete complete formOh, strange, suddenly there’s a button ‘delete this form’ present! No idea why it is there now, but it works.
Forum: Fixing WordPress
In reply to: pagination not working on custom templateGot it! Thanks!
This is the code that works: https://pastebin.com/GHWbb43G
Forum: Fixing WordPress
In reply to: pagination not working on custom templateForum: Fixing WordPress
In reply to: pagination not working on custom templateWell, it’s clear I’m not a genius programmer ??
This is all the code of the template:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
I’ve tried some things, but it won’t work.
Forum: Fixing WordPress
In reply to: pagination not working on custom templateThere’s no content being displayed. I see the wp-pagenavi, but when I klik on page 2, I still see the first page, but in the URL is /page/2 added.
I see what you mean…
It works perfectly! All my WordPress problems are gone for now ??
Thanks for all your help!
Thanks man! It works!
Only, I see it creates a new problem. I have only one thing left which is linked to the two categories. In my header.php I have a code that picks up the oldes post. It must be the oldest post of one category (proef), the one which is in reversed order. But now it picks the oldest post of all categories. I tried this:
[code moderated - pease use the https://pastebin.com/ for any code of more than 10 lines, see forum guidelines for posting code]
Do you know how to solve this without it creates a new problem? ?? Thanks a lot!
Oke, that’s strange. So this must do the trik?
<?php global $query_string; ?>
<?php if (is_category(‘proef’)){
query_posts($query_string . “cat=&order=ASC”);} ?>If I do this I get the message on my page that there’s no post found in one of the 2 categories.
Thanks, but…
I realize it’s relevant to mention that I just want one category to go in reversed order. So this is the complete code which should do that:
<?php if (is_category(‘my-category’)){
query_posts($query_string . “cat=&order=ASC”);} ?>If I let the ‘if’ function out of it, it works, but then it also happens on the other categories. Can you help me again please?
Thanks a lot!