Add nonexisting pages to navigation

Try the filter ‘page_link’, and manipulate the url if id is over $wpfbId http://codex.wordpress.org/Plugin_API/Filter_Reference applied to the calculated page URL by the get_page_link function. Filter function arguments: URL, page ID. Note that there is also an internal filter called _get_page_link that can be used to filter the URLS of pages that are not designated as … Read more

How to sync tags between posts that are linked through Posts 2 Posts?

I think there are 2 solutions for you problem. The first is rely on P2P functions like each_connected (see this as example) and retrieve the connected ‘Person’ after running a taxonomy query for ‘Activities’. Maybe this solution can be easier, faster and straightforward. Second solution is what you says in your question: apply the taxonomy … Read more

Custom post types, taxonomies, and permalinks

Change slug in your post type arguments to products/%product_cat%, and slug in your taxonomy arguments to just products, then flush your rewrite rules. WordPress should now handle /products/my-product-cat/post-name/! Now finally, we need to help WordPress a little with generating permalinks (out of the box, it won’t recognise the permastruct tag %product_cat%): /** * Inject term … Read more

How to filter the taxonomy terms based on another taxonomy term

I did few tweaks on the earlier code, the first filter is working fine for now, I am little confused on the rest any suggestion sven ? can you help me to bring this effectively. <!– last edit started by dev –> <script type=”text/javascript”> function onchangedestination(str) { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, … Read more