fidra
Forum Replies Created
-
Forum: Plugins
In reply to: [Help] Get current page id base on page titleThanks for your help a lot!
The code works fine. How can I use JavaScript to make the page list as a tree view. It means that when I click on About/Sub1 page, the Sub1 will expand and show all child pages when the Sub2 still collapse?
My page was hosted on a free hosting, the host cannot access right now (I don’t know why. I tested the code on my localhost).
The link is: https://hoangvuit.summerhost.info/wordpress/
Hope it will be back soon ??
Thanks for your help again!
Forum: Plugins
In reply to: [Help] Get current page id base on page titleYes, the code from google works fine if I use the URL like this: https://www.domain.com/?p=123.
But my URL is: https://www.domain.com/post-name, so it does not work. Then, I tried using your code and it works now.
Everything work fine now.
But can you show me how to make the Page list appear like this:
– When I browsing the About page, the Page list in the sidebar just lists all the child page (sub1, sub2).
– When I browsing the About/Sub1 page, the Page list in the sidebar also lists all the child page (sub1, sub1/undersub1, sub1/undersub2, sub2) of the About page and hide all sub2’s child pages.
– And if I browse the About/Sub2 page, the Page list in the sidebar also lists all the child page (sub1, sub2, sub2/undersub1, sub2/unsersub2) of the About page and hide all sub1’s child pages.
My page structure is:
– Paderborn
— Sub1
— Sub2
– About
— Sub1
— underSub1
— underSub2
— Sub2
— underSub1
— underSub2Please help! Thanks!
Forum: Plugins
In reply to: [Help] Get current page id base on page titleSorry vtxyzzy, it works. But now, I want it appeare like this:
– When I browsing the About page, the Page list in the sidebar just lists all the child page (sub1, undersub1, undersub2, sub2).
– When I browsing the About/Sub1 page, the Page list in the sidebar also lists all the child page (sub1, undersub1, undersub2, sub2) of the About page and hide all sub2’s child pages (if it has child page).
– And if I browse the About/Sub2 page, the Page list in the sidebar also lists all the child page (sub1, sub2) of the About page and hide all sub1’s child pages.
Can you help me?
Thanks you very very much ??
Forum: Plugins
In reply to: [Help] Get current page id base on page titleThanks vtxyzzy very very much ??
It works now, I used your code and it works now.
Thank you again.
Best regards,
Forum: Plugins
In reply to: [Help] Get current page id base on page titleThis is the link that I found: https://www.martin-gardner.co.uk/how-to-list-wordpress-child-pages-only-on-that-parent-page/
Please see the example: I had the following page structure
– Paderborn
— Sub1
— Sub2
– About
— Sub1
— underSub1
— underSub2
— Sub2I want to list the only the child pages of the current browsing page.
For example: If I was browsing the Paderborn page, the Page list in the sidebar just lists the Sub1 and Sub2 page.I used pretty URL: https://www.domain.com/pageTitle
Please help.
Forum: Fixing WordPress
In reply to: Error when try to save postI did not install any new plugin but I got the same problem, the same code when I tried to publish new post:
Maximum execution time of 30 seconds exceeded in /wp-includes/wp-db.php
PS: I used WP v2.5