-
AuthorPosts
-
October 8, 2018 at 11:25 am #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!
October 8, 2018 at 8:11 pm #1019186Hey 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,
VictoriaOctober 9, 2018 at 11:08 am #1019424Yes!
October 10, 2018 at 8:29 am #1019835Hi JantienM,
Can you please remove all the Tribe event related functions and see if the issue persists?
Best regards,
VictoriaOctober 10, 2018 at 11:28 am #1019893Hi Victoria, I removed all other code but the problem still persists.
October 11, 2018 at 10:17 pm #1020497Hi,
And cleared the cache also?
Best regards,
BasilisOctober 16, 2018 at 9:20 am #1022053I’m sorry, it still doesn’t work… It gives the same error message.
October 16, 2018 at 9:47 pm #1022410Hi,
Please check it now and let me know if now all is good
Best regards,
BasilisOctober 17, 2018 at 10:03 am #1022657Hi Basilis,
I checked, but the code still gives the same error. I’m not sure what you did/changed?
October 19, 2018 at 12:07 pm #1023881Hi 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,
VictoriaOctober 19, 2018 at 12:52 pm #1023906the 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.
October 19, 2018 at 5:38 pm #1024095Hi JantienM,
Which code are you adding there?
Best regards,
VictoriaOctober 22, 2018 at 1:09 pm #1024838The code as described on this page: https://kriesi.at/documentation/enfold/post-slider/#how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element
October 25, 2018 at 7:07 am #1026203Hi,
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,
IsmaelOctober 25, 2018 at 3:39 pm #1026372Hi Ismael,
Thanks so much, I didn’t realise I could ignore the blockcode code. It works perfectly now!
Topic can be closed.
October 25, 2018 at 6:15 pm #1026458Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Change Sort Order of Post Slider Element by Date’ is closed to new replies.