dbybanez
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Creating complex navs using custom nav walkerOkay, so I solved my problem using this link: https://wordpress.stackexchange.com/a/49005/91164 The example only shows how to add classes to the last child of its siblings. But want I want to do is to modify how the last child displays.
Though this is the closest to what I’m looking for, I just had to modify some logics of this code.
I also encountered some problems displaying the item title. What I did was, instead of using
$item
, I used$element
infunction display_element()
. For example (retrieving the item’s url):$element->url
instead of$item->url
.Forum: Developing with WordPress
In reply to: Creating complex navs using custom nav walkerSorry for replying late.
Yes, I’m trying to create a custom walker with different logic when traversing through all elements. I have another question but I think I might create another topic for this. I need to determine if the element is the last child of the current parent element.
It worked perfectly!
I’ve added a condition so that I will post the submitted author name or the wordpress author:
if($this_post->is_submission == true)
Thank you!
Forum: Plugins
In reply to: [Polylang] Can't switch other language when in Static Front PageNo problem. Thank you for your help. I’ve created a new thread, you can check it here: https://www.ads-software.com/support/topic/is-it-possible-to-have-the-same-permalink-in-all-languages?replies=1
Forum: Plugins
In reply to: [Polylang] Can't switch other language when in Static Front PageBy the way, I’m using the widget language switcher. Yes, I’ve added both languages.
But, I don’t know what happened, after a few adjustments, it seemed to work. Was able to switch back on both languages. Though my problem now is about how to change the permalink.
Thanks.