PHP webdeveloper and frontend developer




Get the current page’s parent page ID in WordPress

Category : PHP, Wordpress · by Oct 27th, 2012

Add this function to your theme’s functions.php file in WordPress. This function will return the page id from the parent page.

SHARE :

(2) comments

Vikal Sen
4 years ago · Reply

This is awesome :) Thanks!

AxelR
3 years ago · Reply

Exactly what I was looking for !
Awesome man thx !

Leave a Reply

Your email address will not be published. Required fields are marked *


s