lazyym
Forum Replies Created
-
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Widget logic with wpadverts pagesAwesome, works great! Thank you sir!
Forum: Plugins
In reply to: [Real-Time Find and Replace] Only on home page?Okay. Still a great plugin, thanks anyways.
Forum: Plugins
In reply to: [Real-Time Find and Replace] Only on home page?Is there a query for that or? I have it working well in other pages no problem. I use the same term on other pages for categories, etc so when I change just that one, it changes all of them and I don’t want that. Its a page title. Is it possible to use a query for the home page and if so, what is it?
Forum: Plugins
In reply to: [Front End PM] Edit FEP widgetSo if I use add_action(‘fep_empty_widget_2’, ‘your_function’ ); in my functions file twice, and add the functions for messages and the other for announcement below that, it will display what I described above on two lines?
You have XX number of messages
</br>
You have XX number of announcementsWhere do I find these functions? The instructional video find doesn’t explain it. Thanks!
Forum: Plugins
In reply to: [Theme My Login] Edit language in .pot file?And put them where Jeff? Apologies for my ignorance. I’ve never worked with these types of files. I use notepad++, work with child themes, ftp, etc for everything and it works fine.
Can I edit them with these with that? Then what? Tell it to me like I’m five. Thanks.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Watermark uploaded imagesFYI: I was able to find a plugin that works with wpadverts for thumbnails @gwin. I had to use “GD library” to get it to work. It will then take about an hour for you to configure it the way you want after fiddling with the settings: https://wordpress.org/plugins/image-watermark/
That seemed to work. Thanks!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Make gallery expand for height?You’re welcome
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Help with adverts page templateOkay, I have the template installed using the twenty sixteen theme. I tested it and it works! Holy crap, you’ll help teach me yet!
I’d like to add some small add to any share buttons spanned to the right, behind the entry-title. Unless you have a better suggestion. I have the script ready to go. I just need to know exactly where and how to implement it.
<div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php // Start the loop. while ( have_posts() ) : the_post(); // Include the single post content template. get_template_part( 'template-parts/content', 'single' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) { comments_template(); } if ( is_singular( 'attachment' ) ) { // Parent post navigation. the_post_navigation( array( 'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'twentysixteen' ), ) ); } elseif ( is_singular( 'post' ) ) { // Previous/next post navigation. the_post_navigation( array( 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentysixteen' ) . '</span> ' . '<span class="screen-reader-text">' . __( 'Next post:', 'twentysixteen' ) . '</span> ' . '<span class="post-title">%title</span>', 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentysixteen' ) . '</span> ' . '<span class="screen-reader-text">' . __( 'Previous post:', 'twentysixteen' ) . '</span> ' . '<span class="post-title">%title</span>', ) ); } // End of the loop. endwhile; ?> </main><!-- .site-main --> <?php get_sidebar( 'content-bottom' ); ?> </div><!-- .content-area -->And if you have any suggestions why the previous/next buttons don’t work as long as we’re in there, that would be helpful.
Thanks!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Contact form subject?Thanks Greg, so the complete function should be?
add_filter( "adverts_contact_form_email", "contact_form_email", 10, 3 ); function contact_form_email( $mail, $post_id, $form ) { $post = get_post( $post_id ); $mail["subject"] = "Re: " . $post->post_title . " - " . $mail["subject"]; $mail["message"] .= "\r\n---\r\n"; $mail["message"] .= get_permalink( $post ) . "\r\n"; return $mail; }And it works! Thanks again!
Now I notice the site email displays as from. But when they click reply, it shows the senders email. Is there a way to display the from senders email in the from line rather than the admin email address?
I am already getting emails from those who’ve received messages in the admin inbox for my site.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Make gallery expand for height?I made a plugin as he suggested using this and its working good: https://github.com/simpliko/wpadverts-snippets/blob/master/replace-gallery/replace-gallery.php
Forum: Plugins
In reply to: [Simple Lightbox] Replace default image titleI tried it and it seems to work great!
add_filter( ‘wp_insert_attachment_data’, function( $data, $postarr )
{
if(
empty( $postarr[‘ID’] )
&& isset( $postarr[‘post_mime_type’] )
&& wp_match_mime_types( ‘image’, $postarr[‘post_mime_type’] )
)
$data[‘post_title’] = ‘Your custom title here’;return $data;
}, 10, 2 );Forum: Plugins
In reply to: [Simple Lightbox] Mobile upload rotation issueI do see that WP Smush seems to solve this problem if you don’t preserve the exif data……. https://wordpress.org/plugins/wp-smushit/
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Contact form subject?Perfect as usual. Woks great! Now, how can I modify that to contain a “Re:” in front of the post title in the subject and a link to the site in the message area? Ideally, a link to the post itself would be great! I hate to be a pain but this is fundamental stuff @gwin. Thank you sir!
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Ads by author snippet custom page title?Love you guys. But my post got hijacked here. How would we go about changing the author page title @gwin?