zxkirazx
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Adding icon in custom formsHow about a text field that does not allow user input but it is just there to provide information?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Adding custom taxonomy into custom fieldHi. I had resolved the issue. Thank you.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingHi. Thank you so much for your help Greg. I just started learning PHP and HTML so I’m not very good at it. Thanks for your patience in guiding me. Merry Christmas and a Happy New Year. Cheers.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingActually, I wanted to add a button beside the grid/list button in the search bar. Such that it will sort the adverts by date on click. Could you help me with that?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingHi. One last question, if I pasted the code in a new plugin and the button is in list.php. How can I set it such that when the button is pressed, the new plugin will execute the add_filter? Onclick event handler does not work and gave me error.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingHi. I added the following line into wpadverts/templates/list.php, but it doesnt do anything. Please advice. Thank you.
<?php function my_adverts_sort_by_title( $args ) {
$args[“orderby”] = array( ‘title’ => ‘ASC’, ‘menu_order’ => ‘DESC’, ‘date’ => ‘DESC’ );
return $args;
} ?>” class=”adverts-button-small adverts-filter-date”><?php _e(“Title”) ?> <span class=”adverts-icon-sort”></span>Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingHi.
I went into wpadverts-bp/wpadverts-bp.php and changed line 484 to false and it works. May I ask if is it the right way to do it?
This was the line that i edited:
$activity = get_post_meta( $post_id, “wpadverts_bp_activity_add”, true );Another quick question. Is there any way i can add a small dropdown/icon beside the grid/list icon that can allows the users to filter the adverts from highest price to lowest price etc. There is a date filter which you commented out. Is it possible to combine that and
add_filter( “adverts_list_query”, “my_adverts_sort_by_title” );
function my_adverts_sort_by_title( $args ) {
$args[“orderby”] = array( ‘title’ => ‘ASC’, ‘menu_order’ => ‘DESC’, ‘date’ => ‘DESC’ );
return $args;
}
to make the filter?Thank you.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingMy “Activity Streams” was enabled but the problem still persists
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingI was not using any adblock. Everything works fine if i deactivate the buddypress integration plugin
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Buddypress Integration not workingHi. There was no error message, just something like this.
- This reply was modified 7 years, 11 months ago by zxkirazx.