-
AuthorPosts
-
April 22, 2024 at 6:54 pm #1440542
Hello everyone
I have created various portfolio pages here: 1 link below:
these are sorted by title.
when i open a portfolio: 2 Link below:I can scroll sideways.
however, this scrolling is not done by title but by the order in which they were entered.
is it possible to set the scrolling by title?thanks
kind regards
FranzApril 26, 2024 at 5:18 am #1440906Hey schweg33,
Thank you for the inquiry.
You can add this filter in the functions.php file to sort the items by title:
function avf_get_prev_post_sort_mod( $sort ) { return "ORDER BY p.post_title DESC LIMIT 1"; } add_filter( 'get_previous_post_sort', 'avf_get_prev_post_sort_mod' ); function avf_get_next_post_sort_mod( $sort ) { return "ORDER BY p.post_title DESC LIMIT 1"; } add_filter( 'get_next_post_sort', 'avf_get_next_post_sort_mod' );
Best regards,
IsmaelApril 26, 2024 at 8:16 am #1440914Hello Ismael
Thank you for your answer
if I insert this into the function php it does not work.
Maybe this is because I already have an entry./*archive village history filter portfolio by individual categories*/
function enfold_customization_postnav($settings){
$settings[‘is_fullwidth’] = false;
$settings[‘skip_output’] = false;
$settings[‘same_category’] = true;
return $settings;
}Could you insert sort by title here?
Thank you
kind regards
FranzApril 26, 2024 at 9:56 am #1440929Hi,
Thank you for the update.
We may need to access the site and test the modification further. Please provide the login details in the private field and make sure that the Appearance > Theme File Editor is accessible.
Best regards,
IsmaelApril 26, 2024 at 2:06 pm #1440955Hello Ismael
thanks for your answer
since I am not allowed to pass on the login data from the board of this association, I have made a copy of the page here:There are no pictures inside, but I don’t think that has any influence on the browsing of the portfolio.
for example here: Link below:if you click on kulturtag-2019, you should be able to scroll to kulturtag-2022 and then to kulturtag-2023?
thanks in advance
kind regards
FranzApril 29, 2024 at 8:00 am #1441250Hi,
Thank you for the info.
We’ve tested the modifications for a while, and the filters seem to be correct based on the documentation. However, they’re not working as expected for some reason. We’ll keep you updated once we discover the issue.
Best regards,
IsmaelApril 29, 2024 at 8:14 am #1441252Hi Ismael
Thank you very much
I’ll wait and see
it would be nice if they would work.
otherwise you are always not sure whether to scroll left or rightthanks in advance
kind regards
FranzApril 29, 2024 at 11:01 pm #1441353big problem is – if you have “same category” set via your snippet – and you have portfolios that have more than one cat!
April 30, 2024 at 6:45 am #1441389An Guenni 007
Thanks, but:
Because of the categories, the sorting must work in exactly the same way, right?April 30, 2024 at 8:19 am #1441393Yes – if each post belongs to exactly one category, it should work. But what if the current post belongs to categories A and B – where should it be linked to then?
Multiple categorisation is not unusual.April 30, 2024 at 8:33 am #1441395thanks for your info
but these posts all belong to one category
and each post is only assigned to one category.
so I think that should work ?April 30, 2024 at 9:09 am #1441399it is the structure of your titles – they formed with numbers ( your years ) there are options of natural sort order (SORT_NATURAL) etc.
the trouble is if you like to sort by titlel and titles are f.e. A1, A2, A10, B1, B20, B3 etc.
does a sort order could be A1, A10, A2, B1, B3, B20
i do not know if this has influence on that filter ?April 30, 2024 at 9:19 am #1441400super thanks
can i send you the login data by e-mail?April 30, 2024 at 1:06 pm #1441446No – please don’t.
I only come here occasionally and give my opinion on topics, but I have enough projects of my own at the moment – so I don’t want to take responsibility for other people’s projects.for so few posts within a category, I would rather install a plugin that supports a custom post order to quickly find a solution. There you can customize the order of the posts by drag and drop.
Such a plugin would be, for example, Simple Custom Post OrderApril 30, 2024 at 6:44 pm #1441488thanks for the tip
but I have no idea how to install this plugin
is there a description somewherekind regards
May 1, 2024 at 7:19 am #1441550Hello Ismael
Is anything else being done by you in this matter.
It would be important for me. That scrolling by title works.
I hope to hear something positive from you.thanks in advance
kind regards
FrantMay 1, 2024 at 3:53 pm #1441596hm – on functions-enfold.php line 827 i found the orderby : post_date
and the filter avf_post_nav_loop_args – but have no success with post_titleMay 1, 2024 at 10:03 pm #1441637Hello Guenni 007
This is the complete entry in the function.php
into category and sortHave I done something wrong here?
Thank you
kind regardsMay 1, 2024 at 11:38 pm #1441659No – I only “think” out loud.
As I understand it, only the order in which they are looped is different – how to solve this?May 2, 2024 at 7:03 am #1441791Can this be solved at all
or is there another possibility that the sorting is correct.further up Ismael writes:
“We have tested the changes for a while, and the filters seem to be correct according to the documentation. However, for some reason they are not working as expected. We will keep you updated as soon as we discover the problem*I should only have an answer if the problem is solved.
Otherwise I will have to try to find another display completely.thank you kind regards Franz
May 5, 2024 at 9:24 am #1442324Thanks to Guienni007
and Ismaelas I have not received a result please close this request
I have created a submenu with full width.this should work for me
you can close these requests
kind regards Franz
May 5, 2024 at 10:27 am #1442327Hi,
Thanks for the update, we’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard1 -
AuthorPosts
- The topic ‘scroll left and right for portfoloio title’ is closed to new replies.