benraaa
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Pagination problemThanks a lot, Joy and bcworkz!
I adapted the code and kicked out the own query and the unnecessary parameters. I have a complex loop and asumed that I need a new query for this. But it indeed works with the main query. And now even the_posts_navigation works like a charm. For the future I try to keep my hands off an own query.- This reply was modified 4 years, 9 months ago by benraaa.
Forum: Developing with WordPress
In reply to: Pagination problemI just detected that page/2/ switches to the index.php, although it started at category.php – where it of course should stay. Seems to be the real problem. Does anybody see why it does switch?
benraaa
Forum: Fixing WordPress
In reply to: wp uses different path to subcategoryChanged this topic to resolved because the question needs to be put differently…
Forum: Themes and Templates
In reply to: How to show wp_nav_menu only if not emptyThanks for your really quick reply. So I will have a look for the newest Twenty Eleven. It will take some hours, since I have to do some other business first. But I will answer then.
Forum: Fixing WordPress
In reply to: Add text to get_permalink()Yes, sorry, the single quote was a typing mistake. Meanwhile I tried a lot of variations: inside and outside the loop, with get_permalink(), the_permalink() and post_permalink(), with an echo-command for the text an with variables. It’s definitly the wrong way. Now, when I tried it once more, it didn’t cut it off, but shows the link of the last article of the category page (now indeed together with the “special” text). However I need the link of the category page where I put the code.
To make it more clear:
code is on category.php,
last article shown on page “weather” is e.g. “A mix of sun and clouds”,
link shows https://www.domain.com/weather/a-mix-of-sun-and-clouds-special,
but should be https://www.domain.com/weather-specialIs there any other method to get the right link?
Hope it’s not too confusing.