havaco
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Polylang Language Switcher stopped workingHi,
I keep getting this problem now and again. Lately every day. Emptying my browser’s cache helps for a day or so and it comes back.
I use Chrome.
Thanks,
HavaForum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search bar right of iconI already did.
You deserve it.
Thanks again.Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search bar right of icon@vinod-dalvi,
Thank you so much.
It’s working!
I love it!Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search bar right of icon@vinod-dalvi),
My current theme is twentyfifteen.
my settings screenshots:
https://drive.google.com/file/d/1KRbGIZ2a_1_kbeXHtcUQsgADwJ1ZB0Ry/view?usp=sharing
https://drive.google.com/file/d/12wQrEpEi8l3fzOlnfeApuDiBmFNro3-2/view?usp=sharingForum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search bar right of icon@vinod-dalvi
It doesn’t work on my twelvefifteen template – that’s my main site.
However, it is working just fine in English and in Hebrew.
Thank you for an awsome plugin.
HavaForum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search bar right of iconHi Vinod Dalvi (@vinod-dalvi)
I have a bilingual site: https://www.havacohen.com
I would like to add your plugin, yet as gene007 (@gene007) I need the magnifing glass to be on the left – when on the Hebrew mode.
The english one works very nicely.
I use polylang plugin for the bi-lungual site.
Thanks ahead for your helpForum: Fixing WordPress
In reply to: Cannot schedule posts with publishHey @umashanker
Thanks for your help. However, each plugin slows the site so I would prefer not to use a plugin in order to remedy a function that is already there, just not working.
Thx anyhowForum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsHey keesiemeijer,
I never de-activated the code.
When I add the //Changing Related_posts… to the functions.php files
I get the
[related_posts_by_tax posts_per_page=”4″]
as can be seen in the picture I uploaded.
The “” are ok too.
Thanks for your efforts,
HavaForum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsHey keesiemeijer,
Of course not. I had to delete it because it caused the error with the “4”!Forum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsHey keesiemeijer,
I did not mess with the plugin.
So I cannot answer your question.
Can you let me know what to look for and I’ll try to locate it?
Thanks,
HavaForum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsHey,
I’m using a child theme of Twentyfifteen.
Here is my functions.php file and beneath is my child function.php file.application/x-httpd-php functions.php
PHP script text
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// avoid @ CSS import WordPress
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_theme_style’ );
function enqueue_parent_theme_style() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
}// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );function top_header_menu() {
register_nav_menu(‘top-header-menu’,__( ‘Top Header Menu’ ));
}
add_action( ‘init’, ‘top_header_menu’ );
// END ENQUEUE PARENT ACTIONChild functions.php:
application/x-httpd-php functions.php
PHP script text
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );function top_header_menu() {
register_nav_menu(‘top-header-menu’,__( ‘Top Header Menu’ ));
}
add_action( ‘init’, ‘top_header_menu’ );
// END ENQUEUE PARENT ACTION
function disable_self_trackback( &$links ) {foreach ( $links as $l => $link )
if ( 0 === strpos( $link, get_option( ‘home’ ) ) )
unset($links[$l]);
}
add_action( ‘pre_ping’, ‘disable_self_trackback’ );
function reset_post_date_wpse_121565($data,$postarr) {
// var_dump($data,$postarr); die; // debug
$data[‘post_date’] = $data[‘post_modified’];
$data[‘post_date_gmt’] = $data[‘post_modified_gmt’];
return $data;
}
add_filter(‘wp_insert_post_data’,’reset_post_date_wpse_121565′,99,2);Thanks ahead
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsThank you Keesiemeijer for your answer.
My site is an RTL one, that’s why you see the brackets like that.
It’s really ”4”.
ThanksForum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsThat is what I get:
An image of my screen with the above code.
Thanks again.Forum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsThanks keesiemeijer for your help.
The code is://Changing Related_posts_position to after_post_content add_filter( 'the_content', 'add_related_posts_after_post_content',999 ); function add_related_posts_after_post_content( $content ) { //check if it's a single post page. if ( is_single() ) { // check if we're inside the main loop if ( in_the_loop() && is_main_query() ) { // add your own attributes here (between the brackets [ ... ]) $shortcode = '[related_posts_by_tax posts_per_page="4"]'; $shortcode = do_shortcode( $shortcode ); // add the shortcode after the content $content = $content . $shortcode; } } return $content; } }
- This reply was modified 7 years, 9 months ago by keesiemeijer. Reason: clean up code block
Forum: Plugins
In reply to: [Related Posts by Taxonomy] Placing related posts after sharing iconsHi Keesie, thanks for your useful plugin.
I was following the above Q+A in hope to move “related posts” after (down) Jetpack social sharing buttons (Publicize).This did not work.
I have the “[related_posts_by_tax posts_per_page=”4”] error.Don’t know much about coding, but the line before your code is
“add_filter(‘wp_insert_post_data’,’reset_post_date_wpse_121565′,99,2);” resetting posts’s date after updating.Help please,
havacohen.com