Selvester47
Forum Replies Created
-
Hi
Thanks for speedy reply. What I really want to do is just to make the one existing field mandatory (Region). The first link seems to be front end forms and the second only refers to custom attributes.
Ive had a look but just cannot find the exisiting ‘Region’ field in the files.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Category pageIts fixed now I didnt have the update from 7 days ago 🙂 Cheers
Forum: Plugins
In reply to: [Advanced Sidebar Menu] Order Menu AlphabeticalThats Brilliant!
Thanks very much Mat. Legend!
Forum: Plugins
In reply to: [Advanced Sidebar Menu] Order Menu AlphabeticalHi
The folders are lower case. The text above was just an example. Ive tried the folder in the theme folder, the child theme and the actual themes folder bu nothing seems to work.
Ive checked the structure again and my menu is set up like this:
MAIN PARENT PAGE
-CHILD PAGE D
– -2nd child page a
– -2nd child page b
– – -3rd child page a
– – -3rd child page b
– – -3rd child page c
– -2nd child page c
– -2nd child page d
-CHILD PAGE A
-CHILD PAGE C
-CHILD PAGE BAs you can see the Top page stays at the top of the menu bu all of its ‘Child pages’ are out of alphabetical order. If there are any 2nd child pages to the child pages then they appear in order as does any 3rd child pages (sorry not sure on the correct names).
Ive tried it on a menu menu set up without any child pages except the top level but these still display mixed up in order.
Forum: Plugins
In reply to: [Advanced Sidebar Menu] Order Menu AlphabeticalHi
Ive made the changes to page_list.php and uploaded it to the following:
tThemes
Child_theme
Advanced-sidebar-menu
page_list.phpbut it didnt work. I have also tried it in the following with no change:
Themes
Child_theme
Advanced-sidebar-menu
Views
page_list.phpBelow is the code:
<?php /** * The Ouput of tad Advanced Sidebar Page Widget * @author Mat Lipe * @since 10.05.12 * * * @uses to edit, create a file named page_list.php and put in a folder in the your theme called 'advanced-sidebar-menu * @uses copy the contents of the file into that file and edit at will * @uses Do not edit this file in its original location or it will break on upgrade */ $asm->title(); #-- list the parent page if chosen if( $asm->include_parent() ){ echo '<ul class="parent-sidebar-menu" >'; wp_list_pages("post_type=".$post_type."&sort_column=post_title&title_li=&echo=1&depth=1&include=".$top_parent); } //If there are children start the Child Sidebar Menu if( $child_pages ){ echo '<ul class="child-sidebar-menu">'; #-- If they want all the pages displayed always if( $asm->display_all() ){ wp_list_pages("post_type=".$post_type."&sort_column=post_title&title_li=&echo=1&child_of=".$top_parent."&depth=".$instance['levels']."&exclude=".$instance['exclude']); } else { #-- Display children of current page's parent only foreach($result as $pID){ #-- If the page is not in the excluded ones if( $asm->exclude( $pID->ID) ){ #--echo the current page from the $result wp_list_pages("post_type=".$post_type."&sort_column=post_title&title_li=&echo=1&depth=1&include=".$pID->ID); } #-- if the link that was just listed is the current page we are on if( $asm->page_ancestor( $pID ) ){ //Get the children of this page $grandkids = $asm->page_children($pID->ID ); if( $grandkids ){ #-- Create a new menu with all the children under it echo '<ul class="grandchild-sidebar-menu">'; wp_list_pages("post_type=".$post_type."&sort_column=post_title&title_li=&echo=1&exclude=".$instance['exclude']."&child_of=".$pID->ID); echo '</ul>'; } } } } #-- Close the First Level menu echo '</ul><!-- End child-sidebar-menu -->'; } if( $asm->include_parent() ) { echo '</ul><!-- .parent-sidebar-menu -->'; }Forum: Plugins
In reply to: [Advanced Sidebar Menu] Page Menu Widget causes other widgets below to bustThanks very much 🙂
Forum: Plugins
In reply to: [Advanced Sidebar Menu] Page Menu Widget causes other widgets below to busthave emailed you the details
Cheers
Lee
Forum: Plugins
In reply to: [Faceted Search] [Plugin: Faceted Search] Ordering of Tags in widgetOpen Faceted_search.php
Find this line:
$tags = $wpdb->get_results('SELECT t1.name, t1.term_id, t2.parent FROM '.$wpdb->terms.' t1, '.$wpdb->term_taxonomy.' t2, '.$wpdb->term_taxonomy.' t3 WHERE t2.term_id = t1.term_id AND t3.term_id=t1.term_id AND t3.taxonomy="post_tag" ORDER BY t2.parent DESC', ARRAY_A);}Add
asort($tags);after that.
Save and it displays the tags in Alpha order.
Open Faceted_search.php
Find this line:
$tags = $wpdb->get_results('SELECT t1.name, t1.term_id, t2.parent FROM '.$wpdb->terms.' t1, '.$wpdb->term_taxonomy.' t2, '.$wpdb->term_taxonomy.' t3 WHERE t2.term_id = t1.term_id AND t3.term_id=t1.term_id AND t3.taxonomy="post_tag" ORDER BY t2.parent DESC', ARRAY_A);}Add
asort($tags);after that.
Save and it displays the tags in Alpha order.
Hi
Could you post the full line of code you changed please and in what file?
Thanks
Forum: Plugins
In reply to: [Faceted Search] [Plugin: Faceted Search] Ordering of Tags in widgetTotally lost me there.
Are you saying theres nothiing I can do on the template side to sort the tags?
Forum: Plugins
In reply to: [Faceted Search] [Plugin: Faceted Search] Change results pageHi
Ive set up a template called search.php and applied that to a page called search on my site. The results from the faceted search still appear on the home template page.