tolkodelo
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Custom Post Order] Inconvinient on mobile devicesHi Mihaela,
Thank you for your answer. I’m looking forward to having this feature implemented.
Artem
Forum: Plugins
In reply to: [Categories Images] NO GOOD. The plugin saves tag image into OPTIONS table.No way )
Forum: Plugins
In reply to: [Intagrate Lite] No posts createdOh, and to trigger post import, as far as I understand, you either have to go to non-front page, or enable the ‘bypass the is_home() check’ option.
Forum: Plugins
In reply to: [Intagrate Lite] No posts createdI’ve just had the same problem, but figured it out. Posts only get fetched from Instagram when someone visits the FRONT end. It may be a good idea to include this into the plugin manual, or to add an action for the console page load.
Forum: Plugins
In reply to: [Simple Lightbox] Pls remove script type=”text/javascript”@archetyped, thank you.
I’ll place this code here in case someone stumbles upon this thread. I ended up writing my own little code snippet to incorporate AIOSEOP into header.php without using wp_head(), and to autogenerate description and (optional) keyword meta. Here it is:
/*All in one SEO Pack with no wp_head()*/ /* options*/ $tdl_keywords_on = true; // add keywords? set to false to disable $tdl_keywords = ''; // default keywords $tdl_search_keywords = ''; // keywords for search.php $tdl_description = ''; // default description $tdl_search_description = ''; // description for search.php $tdl_taxonomy_description = ''; // default part of taxonomy description. Will be paired with keywords /* end of options*/ $tdl_p = ", "; $eol = "\r\n"; $tdl_object = get_queried_object(); //get current object $tdl_post_meta = get_post_meta(get_queried_object_ID()); //get object meta if(is_search() == false){ //if any part of site but search /*KEYWORDS*/ if(!empty($tdl_post_meta['_aioseop_keywords'])) { //if keywords were filled out manually, use them $tdl_keywords = str_replace('"','\"',reset($tdl_post_meta['_aioseop_keywords'])); } else { //if no keywords found, autogenerate if(is_category() || is_archive()){ //if object is category or archive $tdl_keywords = $tdl_keywords->cat_name; } else { //if it's a single page/post $tdl_keywords = $tdl_object->post_title; }; $taxonomies = wp_get_post_terms(get_the_ID(), 'post_tag', array('fields' => 'names')); $taxonomies = array_merge ($taxonomies, wp_get_post_terms(get_the_ID(), 'category', array('fields' => 'names'))); //$taxonomies = array_merge ($taxonomies, wp_get_post_terms(get_the_ID(), 'YOUR_CUSTOM_TAXONOMY', array('fields' => 'names'))); //uncomment for your custom taxonomies and change YOUR_CUSTOM_TAXONOMY to desired taxonomy $tdl_keywords .= (!empty($taxonomies))?(!empty($tdl_keywords))?', '.implode(', ', $taxonomies):implode(', ', $taxonomies):''; }; /*DESCRIPTION*/ if(!empty($tdl_post_meta['_aioseop_description'])) { //if description is filled out manually, use it $tdl_description = str_replace('"','\"',reset($tdl_post_meta['_aioseop_description'])); } else { //if no keywords found, autogenerate if(is_category() == false && is_archive() == false){ //if object is NOT a category or archive $text = str_replace(array("\r\n","\r","\n"),' ',str_replace(array('"'),'',wp_strip_all_tags(get_post_field('post_content',get_the_ID())))); $length = 150; if(mb_strlen($text)<$length) { $tdl_description = $text; } else { $break_pos = mb_strpos($text, ' ', $length);//find next space after desired length $tdl_description = balanceTags(mb_substr($text, 0, $break_pos)); }; } else { $tdl_description = $tdl_taxonomy_description.' '.$tdl_keywords; }; }; } else { //if we're on search.php, use default keywords and description if(!empty($_GET['s']) && $_GET['s'] !== '' && isset($_GET['s'])){ $tdl_keywords = $_GET['s']; } else { $tdl_keywords = $tdl_search_keywords; }; $tdl_description = $tdl_search_description; } echo (!empty($tdl_description))? '<meta name="description" content="'.$tdl_description.'"/>'.$eol:''; echo ($tdl_keywords_on == true && !empty($tdl_keywords))? '<meta name="keywords" content="'.mb_strtolower(str_replace(array(':','?','!',';','.','"'),'',$tdl_keywords)).'"/>'.$eol:''; /*End*/
Ok. I can see the logics of how the plugin generates meta, so I guess I can write the functions myself. Or better fill out the meta fields ??
Thank you for your reply!Hi Michael!! ) Thank you for your answer!
Ok, that solves my problem. You see, I stripped my WP of almost all front-end functionality that I don’t use in my project, so I don’t currently use wp_head().
Is there a function I can call from my header to place autogenerated meta in it? Or maybe you can point out a place in the plugin code so I could work from there.
Forum: Plugins
In reply to: [Yandex Map for ACF] Плагин ломает ВордПрессТак, нашел как выводить карту – в обсуждениях в поддержке.
Но пока вижу, что вывод карты ломает мне следующие скрипты на jquery (в консоли ошибка “$(…).[мой метод] is not a function”)
- This reply was modified 7 years, 1 month ago by tolkodelo.
Forum: Plugins
In reply to: [Yandex Map for ACF] Плагин ломает ВордПрессЯсное дело, но такая версия стоит на сервере, что делать.
Вы бы еще способ вывода карты написали в установке, либо функцию.
Forum: Plugins
In reply to: [Yandex Map for ACF] Плагин ломает ВордПресс…Как писал один фантаст, “ученые будущего снова вывели динозавров методом обратной эволюции – путем раскрещивания, открещивания и разбора” ))) Вот примерно таким путем и вычислял, что мне ломает WP – вырезанием кусков кода )))
Forum: Plugins
In reply to: [Yandex Map for ACF] Плагин ломает ВордПрессphpversion() выдает 5.3.10-1ubuntu3.26
Forum: Fixing WordPress
In reply to: Problem with Redicet 301I still know no answer, but I made a 2nd set of redirects that lead to my new pages…
it looks like a strange solution, but at least it works
Forum: Fixing WordPress
In reply to: Problem with Redicet 301anyone???