zonepluss
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Dropdown menuThanks a lot, Greg!
If i want to add some link or simple text like “show all” to the flexbox, below the main category, that users can click on this text and then subcategories dropdown, i need create this with js or theme html before?
RegardsForum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Dropdown menuhttps://nedia.eu/katalog-obyavleniy/
Now i’m using CSS to hide subcategories, it works well, but i want to try to display subcategories by clicking, not by hover.Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Dropdown menuI clicked on the report link by accident, sorry!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Ad detail fieldsThanks! Very useful extension!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] User’s Adverts questionAlsi they said, that i need to change the cpt_slug with WP Adverts post type. Maybe it is the problem?
Thanks!Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] User’s Adverts questionHi, Greg!
I have got code snippet from UM support and i combined with your, so i have this code now://Adverts on social activity wall
add_action( “publish_advert”, “on_advert_publish” );
function on_advert_publish( $post_id ) {
$advert = get_post( $post_id );
// add UM activity here
function um_activity_new_cpt( $post_id ) {
if (defined(‘DOING_AUTOSAVE’) && DOING_AUTOSAVE) return;
if ( get_post_type( $post_id ) != ‘cpt_slug’ || get_post_status( $post_id ) != ‘publish’ ) return;if ( ! UM()->options()->get(‘activity-new-post’) )
return;$post = get_post( $post_id );
$user_id = $post->post_author;um_fetch_user( $user_id );
$author_name = um_user(‘display_name’);
$author_profile = um_user_profile_url();if (has_post_thumbnail( $post_id ) ) {
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘large’ );
$post_image = ‘<span></span>’;
} else {
$post_image = ”;
}if ( $post->post_content ) {
$post_excerpt = ‘<span>’ . wp_trim_words( strip_shortcodes( $post->post_content ), $num_words = 25, $more = null ) . ‘</span>’;
} else {
$post_excerpt = ”;
}UM()->Activity_API()->api()->save(
array(
‘template’ => ‘new-post’,
‘wall_id’ => $user_id,
‘related_id’ => $post_id,
‘author’ => $user_id,
‘author_name’ => $author_name,
‘author_profile’ => $author_profile,
‘post_title’ => ‘<span>’ . $post->post_title . ‘</span>’,
‘post_url’ => get_permalink( $post_id ),
‘post_excerpt’ => $post_excerpt,
‘post_image’ => $post_image,
)
);
}
}
add_action(‘save_post’, ‘um_activity_new_cpt’, 99999, 1 );It’s actually work, but unfortunately there is some errors.
Can you please check this code, is there any bugs?
Thank you!Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] User’s Adverts questionThanks for advice, Greg!
The problem is solved!
Thank You!UM version is 2.1.2
Using UM theme and extensions.
I set “Require email activation” it work fine.
When trying to login appear this notice “Wrong password. Please enter again.”I use your paid UP theme ! I wrote on the forum contact form 7, and they said that maybe your topic does not contain a suitable mobile style for CF7 forms.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Link and pricingThanks a lot Greg, it work fine!!!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Subcategories dropdownOk, thanks a lot Greg
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Link and pricingHi Greg!
From UM support forum i got this snippet:
<?php
if ( class_exists( ‘UM’ ) ) {
$user_id = get_current_user_id();
echo um_user_profile_url( $user_id );
}
?>
What do you think about this code and where it must be placed, functions.php or ads-by-author.php?
ThanksThank you!
This code must be in the functions.php file right?Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Subcategories dropdownI want to display this shortcode [adverts_categories name=”Catalog” show=”all” columns=”4″ sub_count=”100″] on the page. Main categories must be visible, but subcategories must be hided, for example you are interested in “Business” category, below the main category must be link or button “See more” or something like this, the you clicking and subcategories appear with dropdown effect. Any advice.
Thank You!