Category

Reviews

http-equiv=»Content-Type» content=»text/html;charset=UTF-8″>lass=»plugin-reviews»>

Thank you so much

The plugin is very easy to use and works perfectly even using custom taxonomies. And the support is great.

Updated Review Again.. This plugin is broken yet again. Out of no where it stopped allowing me to manually sort more than 20 posts. Adjusted Review until it is functioning again. It is NOT STABLE. The author has been very helpful in most cases, but there is still no resolution.

Dont work

Thanks so much for the plugin. I just have a problem. I’ve sorted posts for a Category then I deleted a post from that category. then I looked at the previous ranking. the post I removed still appears to be in order. the problem is not resolved until you reset the ranking. That is the problem.

Thanks a lot for upgrading the Plugin. Its now perfectly wotking and doing what I need. Also the possiblity that the core function to get previous and next posts is included with filters.

Natural transformations

A natural transformation is a relation between two functors. Functors often describe «natural constructions» and natural transformations then describe «natural homomorphisms» between two such constructions. Sometimes two quite different constructions yield «the same» result; this is expressed by a natural isomorphism between the two functors.

If F and G are (covariant) functors between the categories C and D, then a natural transformation η from F to G associates to every object X in C a morphism ηX : F(X) → G(X) in D such that for every morphism f : XY in C, we have ηYF(f) = G(f) ∘ ηX; this means that the following diagram is commutative:

The two functors F and G are called naturally isomorphic if there exists a natural transformation from F to G such that ηX is an isomorphism for every object X in C.

Navigation menu

In Wikipedia

  • Alemannisch
  • العربية
  • مصرى
  • অসমীয়া
  • Azərbaycanca
  • تۆرکجه
  • Беларуская
  • Беларуская (тарашкевіца)‎
  • Български
  • भोजपुरी
  • বাংলা
  • Bosanski
  • Català
  • Cebuano
  • Čeština
  • Dansk
  • Deutsch
  • Ελληνικά
  • English
  • Español
  • Eesti
  • فارسی
  • Suomi
  • Français
  • Galego
  • ગુજરાતી
  • Gaelg
  • עברית
  • हिन्दी
  • Hrvatski
  • Magyar
  • Հայերեն
  • Interlingua
  • Bahasa Indonesia
  • Italiano
  • 日本語
  • ქართული
  • 한국어
  • Kurdî
  • Kernowek
  • Latina
  • Lietuvių
  • Македонски
  • മലയാളം
  • मराठी
  • Bahasa Melayu
  • မြန်မာဘာသာ
  • Plattdüütsch
  • नेपाली
  • Nederlands
  • Polski
  • Português
  • Romani čhib
  • Română
  • Русский
  • Sicilianu
  • Scots
  • سنڌي
  • Davvisámegiella
  • Srpskohrvatski / српскохрватски
  • සිංහල
  • Simple English
  • Slovenčina
  • Slovenščina
  • Shqip
  • Српски / srpski
  • Sunda
  • Svenska
  • தமிழ்
  • తెలుగు
  • Тоҷикӣ
  • ไทย
  • Türkçe
  • Татарча/tatarça
  • Українська
  • اردو
  • Oʻzbekcha/ўзбекча
  • Tiếng Việt
  • 吴语
  • ייִדיש
  • 中文
  • 粵語

Functors

Functors are structure-preserving maps between categories. They can be thought of as morphisms in the category of all (small) categories.

A (covariant) functor F from a category C to a category D, written F : CD, consists of:

  • for each object x in C, an object F(x) in D; and
  • for each morphism f : xy in C, a morphism F(f) : F(x) → F(y),

such that the following two properties hold:

  • For every object x in C, F(1x) = 1F(x);
  • For all morphisms f : xy and g : yz, F(gf) = F(g) ∘ F(f).

A contravariant functor F: CD is like a covariant functor, except that it «turns morphisms around» («reverses all the arrows»). More specifically, every morphism f : xy in C must be assigned to a morphism F(f) : F(y) → F(x) in D. In other words, a contravariant functor acts as a covariant functor from the opposite category Cop to D.

Explicit Interface Implementations

Сопоставляет набор имен соответствующему набору идентификаторов диспетчеризации.Maps a set of names to a corresponding set of dispatch identifiers.


(Inherited from Attribute)

Возвращает сведения о типе объекта, которые можно использовать для получения сведений о типе интерфейса.Retrieves the type information for an object, which can be used to get the type information for an interface.

(Inherited from Attribute)

Возвращает количество предоставляемых объектом интерфейсов для доступа к сведениям о типе (0 или 1).Retrieves the number of type information interfaces that an object provides (either 0 or 1).

(Inherited from Attribute)

Предоставляет доступ к открытым свойствам и методам объекта.Provides access to properties and methods exposed by an object.

(Inherited from Attribute)

Historical notes

In 1942–45, Samuel Eilenberg and Saunders Mac Lane introduced categories, functors, and natural transformations as part of their work in topology, especially algebraic topology. Their work was an important part of the transition from intuitive and geometric homology to homological algebra. Eilenberg and Mac Lane later wrote that their goal was to understand natural transformations. That required defining functors, which required categories.

Stanislaw Ulam, and some writing on his behalf, have claimed that related ideas were current in the late 1930s in Poland. Eilenberg was Polish, and studied mathematics in Poland in the 1930s. Category theory is also, in some sense, a continuation of the work of Emmy Noether (one of Mac Lane’s teachers) in formalizing abstract processes;[citation needed] Noether realized that understanding a type of mathematical structure requires understanding the processes that preserve that structure (homomorphisms).[citation needed] Eilenberg and Mac Lane introduced categories for understanding and formalizing the processes (functors) that relate topological structures to algebraic structures (topological invariants) that characterize them.

Category theory was originally introduced for the need of homological algebra, and widely extended for the need of modern algebraic geometry (scheme theory). Category theory may be viewed as an extension of universal algebra, as the latter studies algebraic structures, and the former applies to any kind of mathematical structure and studies also the relationships between structures of different nature. For this reason, it is used throughout mathematics. Applications to mathematical logic and semantics (categorical abstract machine) came later.

Certain categories called topoi (singular topos) can even serve as an alternative to axiomatic set theory as a foundation of mathematics. A topos can also be considered as a specific type of category with two additional topos axioms. These foundational applications of category theory have been worked out in fair detail as a basis for, and justification of, constructive mathematics. Topos theory is a form of abstract sheaf theory, with geometric origins, and leads to ideas such as pointless topology.

Categorical logic is now a well-defined field based on type theory for intuitionistic logics, with applications in functional programming and domain theory, where a cartesian closed category is taken as a non-syntactic description of a lambda calculus. At the very least, category theoretic language clarifies what exactly these related areas have in common (in some abstract sense).

Category theory has been applied in other fields as well. For example, John Baez has shown a link between Feynman diagrams in physics and monoidal categories. Another application of category theory, more specifically: topos theory, has been made in mathematical music theory, see for example the book The Topos of Music, Geometric Logic of Concepts, Theory, and Performance by Guerino Mazzola.

More recent efforts to introduce undergraduates to categories as a foundation for mathematics include those of William Lawvere and Rosebrugh (2003) and Lawvere and Stephen Schanuel (1997) and Mirroslav Yotov (2012).

Работающие примеры

Здесь несколько примеров для демонстрации того, как следует использовать условные теги.

Одиночный пост

Этот пример показывает как использовать условный тег is_single () для того, чтобы отобразить информацию только на странице одиночного поста:

<?php if (is_single())
{
echo 'Это один из постов в рубрике ' . single_cat_title() . ', вот так!';
}
?>

Разница, основанная на дате

Если кто-то просматривает ваш блог по датам, то он увидит «помеченные» посты разных лет разным цветом бэкграунда:

<?php
// начинаем Цикл
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2 id="post-<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Постоянная ссылка <?php the_title(); ?>">
<?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small><?php
// если отображаем архив даты
if (is_date())
{
if (date('Y') != get_the_date('Y'))
{
// этот пост был написан в прошлом году
// поэтому припишем css класс "oldentry" к блоку с постом,
// чтобы придать ему отличный от других блоков вид
echo '<div class="oldentry">';
} else {
echo '<div class="entry">';
}
} else {
echo '<div class="entry">';
}
the_content('Далее »');
?>
</div>

Разный контент в боковой колонке (сайдбаре)

Этот пример выводит различный контент в боковой колонке в зависимости от того, какой тип контента просматривается в текущий момент.

<!-- начало боковой колонки -->
<div id="sidebar">
<?php
// let's generate info appropriate to the page being displayed
if (is_home()) {
// на главной странице покажем список рубрик первого уровня:
echo "<ul>";
wp_list_cats('optionall=0&sort_column=name&list=1&children=0');
echo "</ul>";
} elseif (is_category()) {
// на странице рубрики покажем все рубрики всех уровней
echo "<ul>";
wp_list_cats('optionall=1&sort_column=name&list=1&children=1&hierarchical=1');
echo "</ul>";
} elseif (is_single()) {
// на странице одиночного поста покажем... что-нибудь, впишите сами:

} elseif (is_page()) { // на странице Постоянной страницы. А какой именно? if (is_page(‘Обо мне’)) { // Постоянная страница About echo «<p>Это страница обо мне!</p>»; } elseif (is_page(‘Используемые плагины’)) { echo «<p>На этой странице список используемых плагинов, я использую WordPress версии » . bloginfo(‘version’) . «</p>»; } else { // для всех других Статичных страниц echo «<p>Привет, я Педро!</p>»; } } else { // для всех остальных типов страниц (архивов, страницы рез-тов поиска, 404 ошибки и т.д.) echo «<p>Педро славный парень.</p>»; } // на этом все! ?> <form id=»searchform» method=»get» action=»<?php echo $_SERVER; ?>»> <div> <input type=»text» name=»s» id=»s» size=»15″ /> <input type=»submit» value=»<?php _e(‘Search’); ?>» /> </div> </form></div> <!— конец боковой колонки —>

Полезная страница ошибки 404

Когда посетитель получает 404 ошибку, то может растеряться. Вы можете извлечь некоторую пользу для себя, т.к. каждый раз, как кто-то попадает на несуществующую страницу вам будет отправляться автоматическое письмо-уведомление.

<p>You
<?php
#некоторые переменные для скрипта
#вы можете тут что-то поменять по своему усмотрению.
$adminemail = get_bloginfo('admin_email');
#эл. адрес администратора, указанный в настройках блога
$website = get_bloginfo('url');
#урл блога
$websitename = get_bloginfo('name');
#имя вашего блога
if (!isset($_SERVER)) {
#politely blames the user for all the problems they caused
echo "tried going to "; #starts assembling an output paragraph
$casemessage = "Не все потеряно!";
} elseif (isset($_SERVER)) {
#это поможет посетителю найти то, что ему нужно, а администратор будет уведомлен об этом кривом адресе странички
echo "кликните сюда"; #now the message says You clicked a link to...
#опеределяем сообщение, которое прийдет администратору
$failuremess = "Кто-то пытался перейти сюда: $website"
.$_SERVER." и получил 404 ошибку (страница не найдена). ";
$failuremess .= "Проверьте эту страницу и исправьте положение дел
Он пришел отсюда: ".$_SERVER;
mail($adminemail, "Плохая ссылка на ".$_SERVER,
$failuremess, "От: $websitename <$website>"); #email you about problem
$casemessage = "Уведомление о 404 ошибке отправлено администратору.";#set a friendly message
}
echo " ".$website.$_SERVER; ?>
and it doesn't exist. <?php echo $casemessage; ?>  Вы можете вернуться назад
и попробовать снова, или поищите так:
<?php include(TEMPLATEPATH . "/searchform.php"); ?>
</p>

Проверка активности виджета: is_active_widget()

Создание виджетов дело незамысловатое, а вот проверка активен виджет или нет можно осуществить с помощью условного тега .

Параметры

Данный тег принимает четыре параметра:

  • (строка, не обязателен): колбэк. (По умолчанию: )
  • (целое число, не обязателен): ID виджета. (По умолчанию: нет значения)
  • (строка, не обязателен): ID виджета, созданного в результате наследования от . (По умолчанию: нет значения)
  • (булево значение, не обязателен): Включать неактивные виджеты в проверку или нет. (По умолчанию: )

Использование

К примеру вам нужно подключить виджет в том случае если активен jQuery. Сделать это можно вот так:

<?php

//источник : http://codex.wordpress.org/Function_Reference/is_active_widget

if ( is_active_widget( false, false, $this->id_base, true ) ) {

    wp_enqueue_script( 'jquery' );

}

?>

How to categorize: guidance by topic

For some categories, there is special guidance on how best to sort content within that category. This guidance can be found in a category scheme or a commons project for your topic. There is also some categorizing information in this section and sometimes there is guidance at the top of the category’s page, in the Category namespace. So, for instance, some guidance on categorizing content depicting people is at the top of Category:People, and some is in the section below.

People

Content depicting people should be put in categories which describe them, such as Category:Economists from the United States. Start exploring at Category:People.

Please see Commons:Category scheme People for details on how to name and organize these categories.

Landscapes, outdoor views

Content depicting a given subject from a common vantage point are grouped in Views of Subject from Viewpoint categories such as Views of Cathedral of Seville from the Giralda. Such categories should be subcategories of both the subject’s category (Cathedral of Seville in this example) and the viewpoint’s category (Giralda in this example).

In this example, the Views of Cathedral of Seville from the Giralda category is not placed directly in the subject and viewpoint categories, but in Views of the Cathedral of Seville and Views from Giralda. Such intermediate categories are often necessary to create structure and avoid , particularly for views of a city from a vantage point located within the city. For example, Views of Rome from the Pincio needs the intermediate category Views of Rome to avoid placing it directly in Rome, which would constitute over-categorization.

Texts

Texts, such as scans of books, should normally have a category for each version of the scan and each edition of the text. Thus a book published in three separate editions would have a parent category for the book, three subcategories for each text, and further subcategories for the text as a jpeg, a DjVu, etc., assuming each version had actually been uploaded. (Categories would not be created for editions not held on Commons.) This is particularly important for files in formats other than DjVu and PDF, where the category is the only practical means of keeping the scans together; see eg. Category:The Chronicles of England, Scotland and Ireland, Holinshed, 1587 which contains 2857 jpeg images of page scans.

GLAMs

For categorization issues related to mass content donations from GLAMs (Galleries, Libraries, Archives & Museums), please see .

Add Category

This part of the SubPanel, which is conveniently linked to from the top of the , allows you to create a new Category. There are four pieces of information associated with each new Category: the name, slug, category parent, and description.

Category Name
To reiterate, the Category Name must be unique.
Category Slug
The Category slug must be unique. The Category Slug is used in the URL. For example, setting a Category Name of «Recipes» and a Category Slug of «food» would show all «Recipes» posts with a URL like example.com/blog/food/.
Category Parent
Use this drop-down if you want to make this Category a sub-Category; you will select the sub-Category’s Parent here. For example, you may have a Category called «Photos» but want to add further clarification about the subject of a particular «Photos» post. You could add «Oregon Coast» and «Ice Storm» as sub-Categories to the «Photos» Category; «Photos» would be the Parent of these two new sub-Categories.
Sub-Categories show up on your blog’s page just like Categories, except they will typically be nested under their Parent Categories. When someone visits your site and clicks the «Photos» Category link, all posts in «Photos» and all its sub-Categories will be displayed. Clicking the «Oregon Coast» Category link only displays those post in that sub-Category. If you assign a post to a sub-Category (e.g. «Oregon Coast»), you can choose to assign that post to the sub-Category’s parent («Photos») or not. Either way, all «Oregon Coast» posts will show up in the «Photos» Category page. The only difference is that the list of Categories of which a particular post is actually a member. In the WordPress Default 1.6 Theme (Kubrick), this list is shown below the text of each post.
Description
Category Descriptions are optional. Some themes take advantage of Category Descriptions, others do not, so having Descriptions may or may not modify the way Categories are displayed for your site. Even if they are not used by your site’s theme, you may still find them useful from an administration point of view.
Add Category
The most important part of the Add New Category box. Once you’ve entered in all the information about your new Category, use this button to save it.

Installation

Automatic installation


Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser. To do an automatic install of Category Posts Widget,

  1. log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
  2. In the search field type “Category Posts Widget” and click Search Plugins.
  3. Once you’ve found plugin, you can install it by simply clicking “Install Now”.
  4. Then, go to plugins page of WordPress admin activate the plugin.
  5. Now, goto the Widgets page of the Appearance section and configure the Category Posts widget.

Notes to Inheritors

При использовании имен категорий, отличных от предопределенных имен, и необходимости локализации имен категорий необходимо переопределить метод .If you use category names other than the predefined names, and you want to localize your category names, you must override the method.

Класс CategoryAttribute определяет следующие общие категории:The CategoryAttribute class defines the following common categories:

КатегорияCategory DescriptionDescription
Свойства, связанные с доступными действиями.Properties related to available actions.
Свойства, связанные с отображением сущности.Properties related to how an entity appears.
Свойства, относящиеся к взаимодействии сущности.Properties related to how an entity acts.
Свойства, связанные с управлением данными и источниками данных.Properties related to data and data source management.
Свойства, сгруппированные в категорию по умолчанию.Properties that are grouped in a default category.
Свойства, доступные только во время разработки.Properties that are available only at design time.
Свойства, относящиеся к операциям перетаскивания.Properties related to drag-and-drop operations.
Свойства, связанные с фокусом.Properties related to focus.
Свойства, связанные с форматированием.Properties related to formatting.
Свойства, связанные с клавиатурой.Properties related to the keyboard.
Свойства, связанные с макетом.Properties related to layout.
Свойства, связанные с мышью.Properties related to the mouse.
Свойства, связанные с стилем окна форм верхнего уровня.Properties related to the window style of top-level forms.

Дополнительные сведения см. в разделе Атрибуты.For more information, see Attributes.

Использование in_category()

К примеру на вашем блоге есть куча категорий, включая «Анонсы». Для того чтобы каким-то образом выделить посты, относящиеся к данной категории можно сделать следующее:

<?php

// стандартный цикл.
if ( have_posts() ) {

    while( have_posts() ) {

        the_post();

        if ( in_category( '7' ) ) { ?>

            <div class="post post-announcement">

        <?php } else { ?>

            <div class="post">

        <?php } ?>

                <h2>
                    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                </h2>

                <div class="post-content">
                    <?php the_content(); ?>
                </div>

            </div><!-- .post -->

    <?php }

} else {

    echo '<p>' . __( 'Sorry, no posts matched your criteria.', 'translation-domain' ) . '</p>';

}

?>

Categorization workflow

Currently, a bot checks if newly uploaded files are categorized in topical categories and attempts to categorize files that are not. Before 17 June 2015, CategorizationBot was responsible for this job. As of June 2019, SteinsplitterBot occasionally checks for uncategorized files. The workflow is the following:

  1. User uploads a new file and adds categories (or not).
  2. A bot checks if the file is categorized.
    • File is already categorized => ok
    • File is not categorized => the bot tags the file for Category:Media needing categories. Today’s files are in Category:Media needing categories as of 19 August 2020
  3. Users categorize files further (e.g. category diffusion below)

See also: , categorization statistics

Other, if manual, categorization workflows are possible :

  • Category filling: Use appropriate keywords in the search engine to find the files that should be in a given category, and put them there.
  • Category diffusing: Go to Category:Categories requiring diffusion, select a crowded category, create appropriate subcategories if needed, and move the files to the subcategories. Gadgets like Cat-a-lot and Hotcats can help.

Edit Category

This part of the SubPanel only displays when you click on a Categories’ Name in the . It is possible to edit four pieces of information associated with each Category: the name, the slug, the parent, and the description.

Category name
To reiterate, the Category name must be unique.
Category Slug
Again, the Category slug must be unique.
Category Parent
Use this drop-down if you want to make this Category a sub-Category; you will select the sub-Category’s Parent here. For example, you may have a Category called «Photos» but want to add further clarification about the subject of a particular «Photos» post. You could add «Oregon Coast» and «Ice Storm» as sub-Categories to the «Photos» Category; «Photos» would be the parent of these two new sub-Categories.
Description
Category descriptions are optional. Some themes take advantage of Category descriptions, others do not, so having Descriptions may or may not modify the way Categories are displayed for your site.
Edit Category
Once you’ve changed the Category information, use this button to save the changes.

Back to Administration Panels.

Methods

Возвращает значение, показывающее, равно ли значение данного объекта текущему атрибуту CategoryAttribute.Returns whether the value of the given object is equal to the current CategoryAttribute.

Возвращает хэш-код для данного атрибута.Returns the hash code for this attribute.

Выполняет поиск локализованной версии имени заданной категории.Looks up the localized name of the specified category.

Возвращает объект Type для текущего экземпляра.Gets the Type of the current instance.

(Inherited from Object)

Определяет, является ли этот атрибут используемым по умолчанию.Determines if this attribute is the default.

При переопределении в производном классе указывает, является ли значение этого экземпляра значением по умолчанию для производного класса.When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.

(Inherited from Attribute)


При переопределении в производном классе возвращает значение, указывающее, является ли этот экземпляр равным заданному объекту.When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.

(Inherited from Attribute)

Создает неполную копию текущего объекта Object.Creates a shallow copy of the current Object.

(Inherited from Object)

Возвращает строку, представляющую текущий объект.Returns a string that represents the current object.

(Inherited from Object)

Conditional Tags Index #Conditional Tags Index

Function Reference

  • Function: comments_open()
  • Function: is_404()
  • Function: is_admin()
  • Function: is_admin_bar_showing()
  • Function: is_archive()
  • Function: is_attachment()
  • Function: is_author()
  • Function: is_category()
  • Function: is_comments_popup()
  • Function: is_date()
  • Function: is_day()
  • Function: is_feed()
  • Function: is_front_page()
  • Function: is_home()
  • Function: is_local_attachment()
  • Function: is_main_query
  • Function: is_multi_author
  • Function: is_month()
  • Function: is_new_day()
  • Function: is_page()
  • Function: is_page_template()
  • Function: is_paged()
  • Function: is_plugin_active()
  • Function: is_plugin_active_for_network()
  • Function: is_plugin_inactive()
  • Function: is_plugin_page()
  • Function: is_post_type_archive()
  • Function: is_preview()
  • Function: is_privacy_policy()
  • Function: is_search()
  • Function: is_single()
  • Function: is_singular()
  • Function: is_sticky()
  • Function: is_tag()
  • Function: is_tax()
  • Function: is_taxonomy_hierarchical()
  • Function: is_time()
  • Function: is_trackback()
  • Function: is_year()
  • Function: in_category()
  • Function: in_the_loop()
  • Function: is_active_sidebar()
  • Function: is_active_widget()
  • Function: is_blog_installed()
  • Function: is_rtl()
  • Function: is_dynamic_sidebar()
  • Function: is_user_logged_in()
  • Function: has_excerpt()
  • Function: has_post_thumbnail()
  • Function: has_tag()
  • Function: pings_open()
  • Function: email exists()
  • Function: post_type_exists()
  • Function: taxonomy_exists()
  • Function: term_exists()
  • Function: username exists()
  • Function: wp_attachment_is_image()
  • Function: wp_script_is()

Description

Order Categories and all custom taxonomies terms (hierarchically) using a Drag and Drop Sortable javascript capability. No Theme update is required the code will change the query on the fly. If multiple taxonomies are created for a custom post type, a menu will allow to chose the one need to be sorted. If child categories (terms) are defined, those can be ordered too using the same interface.Also you can have the admin terms interface sorted per your new sort.This plugin is developed by Nsp-Code

See the Advanced Taxonomy Terms Order for advanced features.

Localization

Available in English, Dutch, French, Deutch, Slovak, Japanese, Traditional Chineze, Brazilian Portuguese, Hungarian, Ukrainian, Czech and Romanian Whant to contribute with a translation to your language? Please check at https://translate.wordpress.org/projects/wp-plugins/taxonomy-terms-order

Reviews

http-equiv=»Content-Type» content=»text/html;charset=UTF-8″>lass=»plugin-reviews»>

Great plugin to add styled description to the Woocommerce categories! Thanks!

I’ve looked high and low for some way of placing an image at the top of Category pages. (And have gotten frustrated trying to code it myself, I’m just not to that level, yet.) I’m using only 6 Categories to break my site content into manageable sections. Part of my navigation structure includes images unique to each content Category. I need some way of having those images display at the top of each respective Category page (be it archive.php or otherwise). CategoryTinyMCE is doing exactly what I need and so far seems to be playing well with WP 5.2.4 and all the other plugins I have installed. Thank you!

Works great and quick help through the plugin support forum if needed.

this really is a great plugin. works with WordPress 5.1 and does the job brilliantly. thank you very much.

Doing the first steps with WP 5x and I’m very happy to found this indispensable Plug-in working. (Environment: WP 5.1 DE, Classic Editor-Plugin, TinyMCE Advanced-Plugin)

I don’t know who you are man, but I f*ck*ng love you! That’s the perfect plugin for everyone that understand a little bit SEO.

Let met explain : The main weakness of a Woocommerce shop is the product category page. There’s only one field and the field is placed in front of product list.

So far I had several option :

Option 1 — Placing a small text in front of my product list, which give me a poor SEO rank.

Option 2 — Placing a big ass text after my product list, which give me a … not ranked by google. Google consider my page as non relevant.

Option 3 — Using a plugin to make a dropdown text. Google don’t give high value of dropdown text, which lead my page to go down on SERP.

Option 4 is a suicide option, but by placing my big ass text in front of my product list I can get a good ranking from SEO. BUT I will get a bounce rate so high that Google end up thinking my page is poorly relevant.

You gave me the best option : Put the most relevant keyword in the first description.

Put all the most long tail keyword at the bottom.

It give me a good ranking from the most relevant keyword and it give me an awesome long tail strategy.

Man, just thank you so much for your plugin.

wp/v2/categories/{id}


Запрос OPTIONS к маршруту вернет полное описание этого маршрута: эндпоинты их параметры, схему.

$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/categories/1
{
    "namespace": "wp/v2",
    "methods": ,
    "endpoints": ,
            "args": {
                "id": {
                    "required": false,
                    "description": "Уникальный идентификатор элемента.",
                    "type": "integer"
                },
                "context": {
                    "required": false,
                    "default": "view",
                    "enum": ,
                    "description": "Рамки в которых сделан запрос, определяют поля в ответе.",
                    "type": "string"
                }
            }
        },
        {
            "methods": ,
            "args": {
                "id": {
                    "required": false,
                    "description": "Уникальный идентификатор элемента.",
                    "type": "integer"
                },
                "description": {
                    "required": false,
                    "description": "HTML описание элемента.",
                    "type": "string"
                },
                "name": {
                    "required": false,
                    "description": "HTML название элемента.",
                    "type": "string"
                },
                "slug": {
                    "required": false,
                    "description": "Буквенно-цифровой идентификатор элемента уникальный для его типа.",
                    "type": "string"
                },
                "parent": {
                    "required": false,
                    "description": "ID элемента родителя.",
                    "type": "integer"
                },
                "meta": {
                    "required": false,
                    "description": "Мета поля.",
                    "type": "object"
                }
            }
        },
        {
            "methods": ,
            "args": {
                "id": {
                    "required": false,
                    "description": "Уникальный идентификатор элемента.",
                    "type": "integer"
                },
                "force": {
                    "required": false,
                    "default": false,
                    "description": "Должно быть истинно, так как элементы не поддерживают перемещение в корзину.",
                    "type": "boolean"
                }
            }
        }
    ],
    "schema": {
        "$schema": "http://json-schema.org/draft-04/schema#",
        "title": "category",
        "type": "object",
        "properties": {
            "id": {
                "description": "Уникальный идентификатор элемента.",
                "type": "integer",
                "context": ,
                "readonly": true
            },
            "count": {
                "description": "Число опубликованных записей элемента.",
                "type": "integer",
                "context": ,
                "readonly": true
            },
            "description": {
                "description": "HTML описание элемента.",
                "type": "string",
                "context": 
            },
            "link": {
                "description": "URL элемента.",
                "type": "string",
                "format": "uri",
                "context": ,
                "readonly": true
            },
            "name": {
                "description": "HTML название элемента.",
                "type": "string",
                "context": ,
                "required": true
            },
            "slug": {
                "description": "Буквенно-цифровой идентификатор элемента уникальный для его типа.",
                "type": "string",
                "context": 
            },
            "taxonomy": {
                "description": "Тип атрибуции элемента.",
                "type": "string",
                "enum": ,
                "context": ,
                "readonly": true
            },
            "parent": {
                "description": "ID элемента родителя.",
                "type": "integer",
                "context": 
            },
            "meta": {
                "description": "Мета поля.",
                "type": "object",
                "context": ,
                "properties": []
            }
        }
    }
}

Алгоритм схож с работой функции get_category().

GET /wp/v2/categories/{id}
id(число)
Идентификатор термина.
context(строка)
Область, в которой выполняется запрос; определяет поля, присутствующие в ответе. Может быть: По умолчанию: view

Пример запроса

http://demo.wp-api.org/wp-json/wp/v2/categories/25

Алгоритм схож с работой функции wp_update_category()

POST /wp/v2/categories/{id}
id(обязательный)
ID термина (рубрики).
name
Название термина (рубрики).
description
Описание термина (рубрики).
slug
Слаг (ярлык) термина (рубрики), обычно создается из названия.
parent
ID родительского термина.
meta
Мета поля.

Пример запроса

$ curl -X POST http://demo.wp-api.org/wp-json/wp/v2/categories/25 -d '{"name":"Новое имя"}'

Или

POST http://wptest.ru/wp-json/wp/v2/categories/6?name=My rubrik&slug=My rubrik

Ответ

{
	"id": 6,
	"count": 0,
	"description": "",
	"link": "http://wptest.ru/cat/my-rubrik/",
	"name": "My rubrik",
	"slug": "my-rubrik",
	"taxonomy": "category",
	"parent": 0,
	"meta": [],
	"_links": {
		"self": [
			{
				"href": "http://wptest.ru/wp-json/wp/v2/categories/6"
			}
		],
		"collection": [
			{
				"href": "http://wptest.ru/wp-json/wp/v2/categories"
			}
		],
		"about": [
			{
				"href": "http://wptest.ru/wp-json/wp/v2/taxonomies/category"
			}
		],
		"wp:post_type": [
			{
				"href": "http://wptest.ru/wp-json/wp/v2/posts?categories=6"
			}
		],
		"curies": [
			{
				"name": "wp",
				"href": "https://api.w.org/{rel}",
				"templated": true
			}
		]
	}
}

Алгоритм схож с работой функции wp_delete_term()

Пример запроса

$ curl -X DELETE http://wptest.ru/wp-json/wp/v2/categories/6?force=true

Ответ

{
	"deleted": true,
	"previous": {
		"id": 6,
		"count": 0,
		"description": "",
		"link": "http://wptest.ru/cat/my-rubrik/",
		"name": "My rubrik",
		"slug": "my-rubrik",
		"taxonomy": "category",
		"parent": 0,
		"meta": []
	}
}

Ответ если такой рубрики нет

{
	"code": "rest_term_invalid",
	"message": "Элемент не существует.",
	"data": {
		"status": 404
	}
}

Examples

В следующем примере создается свойство .The following example creates the property. Свойство имеет два атрибута: DescriptionAttribute и CategoryAttribute.The property has two attributes: a DescriptionAttribute and a CategoryAttribute.

В следующем примере возвращается Категория для .The next example gets the category for . Во-первых, код получает PropertyDescriptorCollection со всеми свойствами для объекта.First, the code gets a PropertyDescriptorCollection with all the properties for the object. Затем код индексирует PropertyDescriptorCollection для получения .Next, the code indexes into the PropertyDescriptorCollection to get . Затем он возвращает атрибуты для этого свойства и сохраняет их в переменной .Then it returns the attributes for this property and saves them in the variable .

Затем в примере выводится Категория путем извлечения CategoryAttribute из AttributeCollectionи записи ее на экран консоли.The example then prints the category by retrieving CategoryAttribute from the AttributeCollection, and writing it to the console screen.


С этим читают