Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1018924

    Hi,

    I want to do exactly as this thread: https://kriesi.at/support/topic/change-sort-order-of-post-slider-element-by-date/

    I added the code in my child functions.php as mentioned on this page:

    I get an error saying my PHP changes are reversed cause of an error on line 147 in file wp-content/themes/enfold-child/functions.php:
    syntax error, unexpected ‘wrapper_element’ (T_STRING), expecting ‘]’

    Can you please help fix this?

    Thanks!

    #1019186

    Hey JantienM,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #1019424

    Yes!

    #1019835

    Hi JantienM,

    Can you please remove all the Tribe event related functions and see if the issue persists?

    Best regards,
    Victoria

    #1019893

    Hi Victoria, I removed all other code but the problem still persists.

    #1020497

    Hi,

    And cleared the cache also?

    Best regards,
    Basilis

    #1022053

    I’m sorry, it still doesn’t work… It gives the same error message.

    #1022410

    Hi,

    Please check it now and let me know if now all is good

    Best regards,
    Basilis

    #1022657

    Hi Basilis,

    I checked, but the code still gives the same error. I’m not sure what you did/changed?

    #1023881

    Hi JantienM,

    I am not seeing the error at the moment, can you please describe the steps to be taken to reproduce the issue?

    Best regards,
    Victoria

    #1023906

    the error appears when I put the code in my funtions file. It can only be reproduced by putting the code in yourself. The code is automatically not saved bij the theme because of the error. I have decribed the eroor in my first thread:

    I get an error saying my PHP changes are reversed cause of an error on line 147 in file wp-content/themes/enfold-child/functions.php:
    syntax error, unexpected ‘wrapper_element’ (T_STRING), expecting ‘]’

    It keeps giving this error when I add the code. Also when I put it in my normal (non-child) functions file and also when I delete the rest of the code in my child-functions file.

    #1024095

    Hi JantienM,

    Which code are you adding there?

    Best regards,
    Victoria

    #1024838
    #1026203

    Hi,

    There is a minor syntax error in that code. It’s wrapped inside a code block shortcode. I added the code in your functions.php file without the shortcode. You can now select a custom “Order” and “Orderby” option in the post slider element.

    Best regards,
    Ismael

    #1026372

    Hi Ismael,

    Thanks so much, I didn’t realise I could ignore the blockcode code. It works perfectly now!

    Topic can be closed.

    #1026458

    Hi,
    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Change Sort Order of Post Slider Element by Date’ is closed to new replies.