Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION [SOLVED] Get parent-page url in the post-pages loop
#1
Hello,

I do a lot of research and experiments if it is possible port my website to GS, here you see my test-website rebuild with GS.

Using parent-pages (template = category.php) also add this category-pages as menu-tem
The child-pages (template = post.php) are subpages from the category-pages

Adding a loop to the homepage that loop over the pages and shows only the post-pages.

This is the code i used and edit:
https://avinashsing.sunkur.com/2011/08/1...n-sidebar/

In the loop you can see that also the category-names (parent-pages) is adding, but how can add the parent-page-url in the loop?

Here you see the backend pages-tab:
   

And this are a snippet from my code for the loop over the post-pages child-pages (try adding my code here, but doesn't work, so made a screenshot):
   

In the XML-file there is only the name from the parent-page, but not the url to the parent-file, is there a way adding the parent-page url?

[font="Droid Sans Mono", "monospace", monospace]<parent><![CDATA[ontspanning]]></parent>[/font]
Reply


Messages In This Thread
[SOLVED] Get parent-page url in the post-pages loop - by tuxy - 2023-01-24, 08:07:46



Users browsing this thread: 1 Guest(s)