Well - I dont know why but using global $post; is not working in your functions.php file. Could you please check with your theme author and adjust the code as per your requirement as this needs custom code. Please free to contact our certified partners for your any custom programming needs.
ok i will handle the redirect:) please help me with pagination and custom fields:
I have a custom date in harmonogram and i would like to make a list of those dates (it easy i already created view) but they should link not to harmonogram item view but shoud be connected with pagination of dieta view as you can see in diets there is a paginatation but we still are in the same view on a diet page i dont want to redirect to given harmonogram rather stay in the same view but switch page but pagination items shouldnt be numbers but this custom field: