Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1123968

    Hello, I add the following code to footer.php

    if(function_exists('pll_current_language')) {
    	$slug = pll_current_language('slug');
    	$post = get_post( pll_get_post($post->ID, $slug) );
    }

    But is not working, can you tell me exactly where to add it

    #1124091

    Hey Melanie,

    What is the code supposed to do and where did you find it?

    Best regards,
    Rikard

    #1124472
    #1124905

    Hi,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Basilis

    #1127060

    any news?

    #1128333

    Hi,

    Where is the access we requested?

    Best regards,
    Basilis

    #1128345
    This reply has been marked as private.
    #1128610

    Hi mela1989,

    Can you please share credentials in private too?

    Best regards,
    Victoria

    #1128949
    This reply has been marked as private.
    #1129398

    Hi,

    Thank you for the update.

    You can add this snippet in the functions.php file to get the translation and use it as the footer page.

    function ava_before_page_in_footer_compile_polylang_mod($post, $id) {
    	if(function_exists('pll_current_language')) {
    		$slug = pll_current_language('slug');
    		$post = get_post( pll_get_post($post->ID, $slug) );
    	}
    }
    add_action('ava_before_page_in_footer_compile', 'ava_before_page_in_footer_compile_polylang_mod', 10, 2);
    

    Best regards,
    Ismael

    #1129629
    This reply has been marked as private.
    #1129820

    Hi,

    That’s the action priority and the number of variables exposed in the callback function “ava_before_page_in_footer_compile_polylang_mod”. Check the parameters in the documentation.

    // https://developer.wordpress.org/reference/functions/add_action/

    Thanks for the update.

    Best regards,
    Ismael

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.