alex46
Forum Replies Created
-
i’m working localhost with xampp , if you want i can copy any code from any folder for you see Greg.
It’s a excert in payments.php :
// Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) exit; global $adverts_namespace; $adverts_namespace['payments'] = array( 'option_name' => 'adext_payments_config', 'default' => array( 'default_gateway' => '', 'default_pricing' => '' ) );
/** * Payments module installer * * This function is executed when Payments module is activated. It creates * new default pricings if the pricings list is empty. * * @since 0.2 * @return void */ function adext_payments_install() { $args = array( 'posts_per_page' => 3, 'post_type' => 'adverts-pricing', ); $query = new WP_Query( $args ); if( $query->found_posts > 0) { return; } $id = wp_insert_post( array( 'post_title' => "Free", 'post_content' => "Free ads are displayed for 30 days.", 'post_type' => "adverts-pricing" ) ); add_post_meta( $id, 'adverts_visible', '30' ); add_post_meta( $id, 'adverts_price', '0' ); $id = wp_insert_post( array( 'post_title' => "Premium", 'post_content' => "Premium ads are displayed for 45 days.", 'post_type' => "adverts-pricing" ) ); add_post_meta( $id, 'adverts_visible', '45' ); add_post_meta( $id, 'adverts_price', '50' ); }
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] I would like to do a search by categoryi found the problem it’s relevansi plugin bug with WP adverts.
I remove and it’s okForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Change the list view of ads to 1 columnBut i want 1 column, 1 ads only per line.
change in CSS it’s possible?
I would apreciate if anyone can help
thanksForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] I would like to do a search by categoryhiltonmw in my site too.
It’s equalGreg can you help us?
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Place order button don't make actionI resolved that i think it’s a bug with Search Everything plugin, i desactivate that plugin and place order show payment info.
Thanks anyway.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] I would like to do a search by categoryI put that code but when i search with a keyword the classified doesn’t show.
It’s normal?Regards