shagen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: posts_nav_link organized by tag – next page not working properlyWorked perfectly! Thanks so much for your time and suggestion. Here is the final code that I ended up with based on your URL suggestion above…
<?php query_posts( array( 'posts_per_page' => 5, 'tag' => 'blog', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),)); ?>
Forum: Fixing WordPress
In reply to: posts_nav_link organized by tag – next page not working properlySo I have narrowed the issue somewhat. Hoping that by explaining this issue someone will be able to make a suggestion.
When removing the line…
<?php query_posts('tag=qualvu-news'); ?>
…from my index page the pagination and next posts work perfectly. Once I put that back in then whenever I hit the “Next Page” link at the bottom of that particular page then it just loads the same set of post even though I know that there are more post for that category.
On the blog page when removing the following code it will not even run the loop at all.
<?php query_posts('tag=qualvu-blog'); ?>
Obviously there is an issue with ‘query_posts’ and how it is interacting with ‘posts_nav_link’.
Any further help or suggestions with the issue would be much appreciated. Let me know if you need anything else that may help you determine the problem. Again you can see the loop/template page code at the following url…
https://wordpress.pastebin.ca/2038233
You can see the actual issue on the site at the following URL…
Forum: Fixing WordPress
In reply to: posts_nav_link organized by tag – next page not working properlySorry about the code posting infraction there. Here is an updated pastebin code reference URL…
https://wordpress.pastebin.ca/2038233
Still having the same problem though.
Forum: Fixing WordPress
In reply to: posts_nav_link organized by tag – next page not working properly[Code moderated as per the Forum Rules. Please use the pastebin]
The only difference in the main index loop is that instead of ‘tag=qualvu-news’ it would be ‘tag=qualvu-blogs’
Forum: Fixing WordPress
In reply to: Splitting 1 blog into 2 using category slugs?Since we do display ‘tags’ on our blog I have gone that route to organize the output of the desired pages. Also this gives me the ability to set up tag specific RSS feeds where I am not sure if I would have been able to do that easily using custom fields.
Thanks Rev. Voodoo for all your help and suggestions! It is much appreciated.
Forum: Plugins
In reply to: Widget Login Plug-in using 'widget_content' filter and tagsGreat suggestion! I will definitely check this out and try and report back with how things went. I had a feeling I was wanting more out of Widget logic than it could give.
Forum: Fixing WordPress
In reply to: Splitting 1 blog into 2 using category slugs?Hmmmm…. I was thinking about using custom fields for this yesterday as well. Maybe I will give that a shot and if it does not feel right then I can move back to your tag suggestion as we do not tag posts anyway or display them anywhere so it would not be a huge deal to utilize them for something.
I agree fighting the category system can be a pain and it would be easier to approach from another angle.
Thanks for the suggestions!
Forum: Fixing WordPress
In reply to: Splitting 1 blog into 2 using category slugs?Seems as though this would be a little bit of an improper use of tags.
If I created the “blog” and “news” categories and then made all the subsequent categories sub-categories beneath them would I be able to eliminate the parent category from the URL/permalink?
Forum: Fixing WordPress
In reply to: Splitting 1 blog into 2 using category slugs?I considered using tags but fear that there would be more room for user error in doing so as people would have to write the tag manually verses checking a box.
However if I am unable to come up with another solution I may revert back to this idea.
Also I was hesitant to use tags as I was not sure that this was a proper way to use them. If I was starting from scratch I think I would try setting up post types. I am messing with Post Types now but I am not sure that I can move old post over to the new post type.
Thanks for your reply and like I said if I do not hear of a different solution I will most likely go the tag route.
Forum: Themes and Templates
In reply to: if else help? would like to display different widget areasThis is absolutely correct. You know what…. I even had seen this page and just did not understand that syntax. Now that I see how it is done it makes more sense. Your example just happens to be a little more clear to the none-programmer. Thanks for taking the time to help me out. It is seriously appreciated!
So I guess my question is as follows…
I want to create a page an archive page that will give me a run down of all the post by year and also be able to show by month and maybe other queries using the Archive.php template and loop. I am obviously a little green at this and want to be sure I am going about it the best way.
Here is the run down on my theme really quick to help you understand where I am coming from…
– it is a child theme
– I have a home page template that I have set to my front page in the reading settings. the actual file name is page-home
– I have set the posts page to news and events which makes it refer to the default template or index.phpI want to make this link in the sidebar shoot me to the archive page that I create. Should I be creating this somehow in the main loop on the index or where will wordpress refer to that page template.
I am a bit lost and stuck. Thanks for all your time in looking at this and trying to understand it all. Here it is on a test link to the shell of my theme thus far. Just choose View All Archives from the sidebar. This is the link that I would like to go to the archive loop that I will set up…
Thanks again
Yes! Wanting to do more. Instead of the information for just that page I would like to create a page that shows all the post by year, then month, etc.
Would that codex page explain this well or am I looking for something else?
That is indeed what I am trying to achieve and I have tried the new page option by doing the following…
1) create an archive.php template file with the proper header as you mentioned above
2) create a new page in the page by adding a new page and then assigning the template to it
3) I then check the permalink and include that in the URL for the manual link that I have created.
4) the page loads properly but the loop that I have on that particular template page DOES NOT show up. The loop is not working on that page for some reason and I am not sure why.
I had almost the exact same suggestion by a friend and what you mentioned above I also tried earlier. I will try one more time just to be sure that I did not miss anything.
Any other thoughts or ideas?