preWeather
Forum Replies Created
-
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Trying to Understand Sitemap4.1.13 work for me now, or you can just wait new plugin updates.
Forum: Plugins
In reply to: [XML Sitemap Generator for Google] Trying to Understand SitemapPerhaps another sitemap plugin is installed. Turn it off.
rolled back to version 4.1.13
problem resolved
WP User Frontend not working with autoptimize pluginForum: Themes and Templates
In reply to: [GeneratePress] Custom variablesThank you, Tom, i found the problem.
As i told already, WordPress have default search permalink /search/global $wp_rewrite; echo $wp_rewrite->search_base;
in theme will show it.
Maybe i will create a little WordPress Plugin to set custom permalink to search.
But if you can, please, make custom variables in your theme work.
https://endlessgeek.com/2014/02/wordpress-pass-extra-variable-url-parameter/Forum: Themes and Templates
In reply to: [GeneratePress] Custom variablesTom, You can make nice search link option for GeneratePress theme. I don’t know why WordPress themes not have this option. Nice search link is always better as /?s=
Forum: Themes and Templates
In reply to: [GeneratePress] Custom variablesHi Tom,
Looks like /search/ is default in wordpress , other keywords not working and redirect to homepage or 404 page, if i change code wp_redirect( site_url() . ‘/search/’ ….this code in functions.php
/* nice search link ------------------------------------*/ function true_rewrite_search_results_permalink() { global $wp_rewrite; if ( !isset( $wp_rewrite ) || !is_object( $wp_rewrite ) || !$wp_rewrite->using_permalinks() ) return; if ( is_search() && !is_admin() && strpos( $_SERVER['REQUEST_URI'], "/search/") === false && ! empty( $_GET['s'] ) ) { wp_redirect( site_url() . '/search/' . urlencode( get_query_var( 's' ) ) ); exit; } } add_action( 'template_redirect', 'true_rewrite_search_results_permalink' ); //for special characters, cyrillic function true_urldecode_s($query) { if (is_search()) { $query->query_vars['s'] = urldecode( $query->query_vars['s'] ); } return $query; } add_filter('parse_query', 'true_urldecode_s');
and for BuddyPress in bp-custom.php
define( 'BP_SEARCH_SLUG', 'searchresults' );
this is why i try to code with custom variable
Forum: Themes and Templates
In reply to: [GeneratePress] Custom variablesThank you for answer.
I would like work with $_GET, then rewrite it to nice url. It should be second custom search result page with custom nice url. Search result page look so now:
https://astroson.com/search/%D0%90%D1%8D%D1%80%D0%BE%D0%BF%D0%BB%D0%B0%D0%BD
I want overwrite /search/ to another “nice word” or keyword for search engines. And search result page should look like a post.I try local move site to GeneratePress theme, all work but not custom variables.
Forum: Themes and Templates
In reply to: [GeneratePress] Custom variablesHi Tom ,
I did it before and when increase php memory limit page get infinite loop.
“Does that error go away once you remove your custom code? ” – custom code does not error on all pages, only on pages with custom variables with url …./?test=valueForum: Themes and Templates
In reply to: [Spacious] Spacious excerpt page missing a hint for moreForum: Themes and Templates
In reply to: [Spacious] How to change read more textadd this code in function.php
function new_excerpt_more($more) { global $post; return ' <a class="more_link" href="'. get_permalink($post->ID) . '">Lee mas</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
Thank you !!!
“As you are clicking on the edit link in frontend dashboard, it will take you to frontend editing feature”
but i have thousand not WUF posts, and i don’t want search posts from backend. Its easy for me access (not WUF posts) backend from template link using edit_post_link().
And edit WUF posts with WUF front end editor.
Better if WUF editor can edit only WUF posts. Maybe you can add check for WPUF pages?wp_dequeue_script – Remove an enqueued script.
scripts
wp_enqueue_script( 'google-maps', $scheme . '://maps.google.com/maps/api/js?sensor=true' ); wp_enqueue_script( 'wpuf-form', WPUF_ASSET_URI . '/js/frontend-form.js', array('jquery') ); wp_enqueue_script( 'wpuf-conditional-logic', WPUF_ASSET_URI . '/js/conditional-logic.js', array('jquery'), false, true ); wp_enqueue_script( 'wpuf-subscriptions', WPUF_ASSET_URI . '/js/subscriptions.js', array('jquery'), false, true ); wp_enqueue_style( 'wpuf-css', WPUF_ASSET_URI . '/css/frontend-forms.css' ); wp_enqueue_style( 'jquery-ui', WPUF_ASSET_URI . '/css/jquery-ui-1.9.1.custom.css' ); wp_enqueue_script( 'jquery' ); wp_enqueue_script( 'jquery-ui-datepicker' ); wp_enqueue_script( 'jquery-ui-autocomplete' ); wp_enqueue_script( 'suggest' ); wp_enqueue_script( 'jquery-ui-slider' ); wp_enqueue_script( 'plupload-handlers' ); wp_enqueue_script( 'jquery-ui-timepicker', WPUF_ASSET_URI . '/js/jquery-ui-timepicker-addon.js', array('jquery-ui-datepicker') ); wp_enqueue_script( 'wpuf-upload', WPUF_ASSET_URI . '/js/upload.js', array('jquery', 'plupload-handlers') );
you can use wp_deregister_script and remove all scripts from pages with out form, but better to make plugin changes