2013-05-07, 02:05:46
I want to read the parent of a slug in a plugin, if possible without reading the slug xml file.
- In the frontend I cannot use returnPageField($slug,'parent') before index-pretemplate (it's still not defined)
- In the backend (the plugin page) the function is available but doesn't work - I get these errors:
(I suppose it's because $pagesArray has not been populated.)
Any other recommended way to do this?
- In the frontend I cannot use returnPageField($slug,'parent') before index-pretemplate (it's still not defined)
- In the backend (the plugin page) the function is available but doesn't work - I get these errors:
Code:
Notice: Undefined index: my-slug in [...]\admin\inc\caching_functions.php on line 114
Warning: array_key_exists() expects parameter 2 to be array, null given in [...]\admin\inc\caching_functions.php on line 114
Any other recommended way to do this?