WordPress create new on site when a new page is added

Figured it out, there is no such thing as “dataslug”, changed it to “data-slug” and it worked perfectly. Really stupid mistake. I guess most people don’t use the tag, but if anyone wants to know you could easily replace it with a and give it a ‘scrollto’ class using the scrollto jquery plugin. Just a … Read more

Pulling sub-site content into specific pages

This can be achieved with the help of a plugin. A custom, hand coded, solution can be built analyzing and modifying the code of such plugin(s). Searching for “multisite + widget“, I found one plugin of interest. Multisite Posts Get posts from another child site in a multisite setup. You can also integrate the plugin … Read more

Set active class in a Php foeach

Have no idea what is $link->slug is it a post type property? or taxonomy? Something else? in case of something else you can use a strpos in comparing url? echo'<a href=”https://wordpress.stackexchange.com/questions/73941/. network_site_url() .”/services/’ .$mylink->slug . ‘ class=”. ($mylink->slug) . (stripos($_SERVER[“REQUEST_URI’], $mylink->slug) !== false ? ‘ active ‘:”).'” >’; in case of post use get_post_field global … Read more