I'm trying to order the pages on the sidebar of the template but it doesn't work. How do I fix this?
-
Please describe what you are trying to do because I don't understand from what you write here.
Thanks.
Max
2 years ago -
Sidebar pages are ordered alphabetically. I would like to order them differently, moving Lista de Ferramentas, for example, to third position.
ebsalberto
2 years ago -
Hi,
open the selected_pages_widget.php and find there this code:
$tfuse_pages_obj = get_pages();
and replace it with this one:
$tfuse_pages_obj = get_pages($args);Then create the variable $args in front of this code (in your case the menu_order should work). Please read here (http://codex.wordpress.org/Function_Reference/get_pages) what parameters can have this function and how to use them.
Max
2 years ago -
I said to create a new variable
$args=array('sort_column' => 'menu_order'); $tfuse_pages_obj = get_pages($args);Then for those pages you need to specify the order and then seelct them from widget. Is working I've tested.
Max
2 years ago -
This is too technical for me.
Here is what I have:
$tfuse_pages = array(); $tfuse_pages_obj = get_pages($args); $args=array('sort_column' => 'menu_order'); $tfuse_pages_obj = get_pages($args);I've set the order on the pages but still got nothing
ebsalberto
2 years ago -
You need to have:
$tfuse_pages = array(); $args=array('sort_column' => 'menu_order'); $tfuse_pages_obj = get_pages($args);
Max
2 years ago -
I've attached the file so you can take a look at it, as it's still not working for me.
ebsalberto
2 years ago -
I don't see the file. If you want to make it work than please provide the ftp details and the username and password from wp-admin.
Then provide the order you want to have in sidebar.
Sorry but I can't help you in other mode. I've tested. The code is working.
Max
2 years ago -
Ok, I've created you a an FTP account (and sent the details through the site link on the form) so you can take a look at it.
I want to be able to order them through the order feature on the admin panel.
Also, I'll need your IP address in order to put you through the firewall. You can send it to my e-mail address if you want.
ebsalberto
2 years ago -
Thanks for the quick reply. I just noticed that this issue is for the Envision Theme. I need to fix the same issue except with the C3 Theme. It is for the "take the tour" page template, specifically for the Services page and services subpages.
BTW...Is there any change the fix can be done through my child theme instead of to the source files?
Thanks for your help!
pwhitewebdesign
1 year ago -
Hi,
sorry but this is not an issue at all. There are used wordpress functions that take the pages in a specific order.
Unfortunately for the take a tour template this is not so simple to do as there is used a code form the sidebar not the selected pages widget and there are used child pages.
If you want and you have the some php skills you can adjust this code http://apmeyer.com/2010/09/page-menus-in-wordpress-displaying-child-pages-for-a-specific-parent-only/ to the sidebar.php file.Sorry but I can't help you with that because this require a lot of time which I don't have at the moment..
Max
1 year ago -
Thanks for the quick reply. Unfortunately, I'm not a PHP guy, which is why I'm using WordPress (like most of us). I assume that it sorts the pages in alphabetical order as it is right now?
It is extremely important that I am able to sort the submenu items in a custom order. Is there another way to change it from alphabetical order? Maybe using the page id or timestamp? In a perfect world, I'd like to be able to set the order of the pages using the wordpress sort order feature, however, if I can get it working I really don't care how it is accomplished.
I look forward to your reply and appreciate your time.
pwhitewebdesign
1 year ago -
Hi,
sorry for a late response. I've found a solutions for this. I've sent the updated sidebar.php file to your mail. Now to sort your pages from Take a Tour page just select the order, please look at the screenshot.Let me know if you need more assistance.
Max
1 year ago -
Hi,
this wouldn't be included in the update. If you want to do this just follow the instructions from the posts above.Let me know if you need more assistance.
Max
1 year ago
Add a new topic!
Chances are your issue is already answered, but if it’s not, you can always create a new topic.
Add new topicSearch forums
Searching for something specific? Type something and press Enter to search.




Add Reply
You must log in to post.