Need some help here in getting a variable from a function.
Inside the functions.php file, there is a bunch of URL rewrite stuff inside an array for this Wordpress theme, and I need to create a page id based on the pages to be used in another part of the theme.
For example:
'all-blog-posts/?$' => 'index.php?special_page=blog&my_custom_page_type=all-blog-posts&paged=1',
'all-blog-posts/page/?([0-9]{1,})/?$' => 'index.php?special_page=blog&my_custom_page_type=all-blog-posts&paged='.$wp_rewrite->preg_index(1),
That is a part of the array, containing 2 array thingymigigs (whatever the official name is).
And after that array, there is this line. The array is called $new_rules
The function is called
function websiteTheme_rewrite_rules( $wp_rewrite )
{
$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
How do I give that all-blog-posts a page id, of the same name for example?