Vinny intitle all user publications. Google search secrets. Special Forces

In the article about I looked at examples and codes for displaying some additional information elements on post pages: coherent notes, tag/category names, etc. A similar feature is also links to previous and next WordPress posts. These links will be useful when navigating site visitors, and are also another way. That is why I try to add them to each of my projects.

Four functions will help us in implementing the task, which I will discuss below:

Since we are talking about a Post page, in 99% of cases you will need to edit the template file single.php(or one where your theme specifies the format for displaying single articles). Functions are used in a Loop. If you need to remove the following / previous posts in WordPress, then look for the corresponding code in the same template file and delete (or comment out) it.

next_post_link function

By default, a link is generated to a note that has a newer creation date immediately after the current one (since all posts are arranged in chronological order). Here's what it looks like in code and on the website:

Function syntax:

  • format(string) - defines the general format of the generated link, where using the %link variable you can specify some text before and after it. By default, this is just a link with an arrow: ‘%link »’
  • link(string) - anchor link to the next post in WordPress, the %title parameter substitutes its title.
  • in_same_term(boolean) - determines whether only elements from the current category will be considered in the work. Valid values ​​are true / false (1 / 0), default is the second option.
  • excluded_terms(string or array) — specify the IDs of the blog categories whose posts will be excluded from the selection. Either array is allowed array(2, 5, 4) or writing it on a line separated by commas. Useful when working with GoGetLinks, when you need to prohibit the display of advertising posts in a given block.
  • taxonomy(string) - contains the name of the taxonomy from which the following entries are taken if the variable $in_same_term = true.

Judging by the screenshot above, it is clear that all these parameters are optional. Here's an example of using the function on one of my sites:

(next article)%link →","%title", FALSE, 152) ?>

Here I set my format for displaying the link + exclude from the selection all elements belonging to section ID = 152.

If you need to display the next post from the same category in WordPress, the code below will come in handy (ignoring the ID = 33 section):

When you want to work only with the current specific taxonomy, specify its name in the parameters (for example, testimonial):

>", TRUE, " ", "testimonial"); ?>

previous_post_link function

The principle of working with WordPress previous posts is similar to the description above, as is the syntax. Looks like that:

Relevant code:

  • format(string) - sets the format for which the %link variable is responsible (add text/tags before and after it). The default is '%link'.
  • link(string) - anchor link, to insert a title write %title.
  • in_same_term(boolean) - if true, then only objects from the same blog section will be displayed.
  • excluded_terms— remove unnecessary categories, specify the ID separated by commas (as a string) or in an array.
  • taxonomy(string) - Defines the taxonomy for selecting the previous post in WordPress if the $in_same_term parameter is active.

In one of my blogs I use:

%link", "<< Предыдущая", TRUE, "33"); ?>

Here we make a bold font + instead of the title of the element, a certain phrase is written (although it is better to use a title in linking). Only objects of the current category are displayed except for the one with ID = 33.

the_post_navigation function

This solution combines both previous and next WordPress post links. This is done for convenience; it replaces calling two functions with one. If you need to output HTML code without display, use get_the_post_navigation().

The_post_navigation syntax is as simple as possible:

Where $args is a set of various optional parameters:

  • $prev_text— anchor of the previous link (%title by default).
  • $next_text— similar link text but for the next post (initially %title).
  • $in_same_term(true/false) - allows you to show only articles from the current taxonomy.
  • $excluded_terms— excluded IDs separated by commas.
  • $taxonomy— the name of the taxonomy for the selection, if in_same_term = true.
  • $screen_reader_text— the title of the entire block (by default — Post navigation).

Thus, we see that here there are the same variables as in the previous “single” functions previous_post_link, next_post_link: anchors, selection by taxonomies, etc. Using the solution will simply make your code more compact, and there is no point in repeating the same parameters twice.

Let's consider the simplest situation when you need to display items from the same category:

"next: %title", "next_text" => "previous: %title", "in_same_term" => true, "taxonomy" => "category", "screen_reader_text" => "More reading",)); ?>

posts_nav_link function

If I understand correctly, then it can be used not only for display in a single post, but also in categories, monthly notes, etc. That is, in single.php it will be responsible for links to previous/next WordPress articles, and in archived ones - for page navigation.

Posts_nav_link syntax:

  • $sep— a separator displayed between links (used to be::, now -).
  • $prelabel— link text of previous elements (default: “Previous Page”).
  • $nxtlabel— text for the next page/posts (“Next Page”).

Here is an interesting example with pictures instead of text links:

" , "" ) ; ?>

", ""); ?>

Just don't forget to upload the images. prev-img.png And next-img.png to the directory images in your . I think other HTML code is added in the same way if, for example, you need to use some DIV or class for alignment.

Total. Navigating there are also a few other different functions that you can find in the code. I hope everything is more or less clear with these. As for posts_nav_link, to be honest, I’m not sure whether it allows you to display previous and next posts on a single page, because I haven’t tested it, although it is mentioned in the description. I think in this case it is more effective and desirable to use the_post_navigation, which is newer and with a much larger number of parameters.

If you have any questions about navigation between posts or additions, write below.

Surely you have heard more than once about such a wonderful search engine as Google. I'm guessing you've used it more than once when you wanted to know something. But did you find what you wanted? If you search for answers on Google as often as I do, I think you will find this article useful because it is designed to make your search faster and more efficient. So, first, a little history...

Google is a corruption of the English word "googol", coined by Milton Sirotta, nephew of the American mathematician Edward Kaiser, to denote the number consisting of one and one hundred zeros. Now the name Google is the leader of Internet search engines, developed by Google Inc.

Google occupies more than 70% of the global market, which means that seven out of ten people online turn to its page when searching for information on the Internet. It currently registers about 50 million search queries daily and indexes more than 8 billion web pages. Google can find information in 101 languages. Google at the end of August 2004 consisted of 132 thousand machines located in different parts of the planet.

Google uses intelligent text analysis techniques to find important yet relevant pages for your query. To do this, Google analyzes not only the page itself that matches the query, but also the pages that link to it to determine the value of that page for the purposes of your query. Google also prefers pages where the keywords you enter are close to each other.

The Google interface contains a rather complex query language that allows you to limit the search scope to specific domains, languages, file types, etc. The use of some operators in this language allows you to make the process of finding the necessary information more flexible and accurate. Let's look at some of them.

Logical “AND”:
By default, when you write query words separated by spaces, Google searches for documents that contain all the query words. This corresponds to the AND operator. Those. a space is equivalent to the AND operator.

For example:
Cats dogs parrots zebras
Cats AND dogs AND parrots AND zebras
(both queries are the same)

Logical "OR" (OR):
Written using the OR operator. Please note that the OR operator must be written in capital letters. Relatively recently, it became possible to write a logical “OR” in the form of a vertical bar (|), similar to how it is done in Yandex. Used to search with several options for the required information.

For example:
Dachshunds long-haired OR smooth-haired
Long-haired dachshunds | smooth-haired
(both queries are the same)

Please remember that Google queries are not case sensitive! Those. the queries Greenland Island and Greenland Island will be exactly the same.

Operator "Plus" (+):
There are situations when it is necessary to force a word into the text that may have different spellings. To do this, use the "+" operator before the required word. Let's say if we have a query for Home Alone I, the query will result in us having unnecessary information about Home Alone II, Home Alone III and very little about Home Alone I. If we have a query of the form Home Alone +I, the result will only contain information about the movie “Home Alone I”.

For example:
Newspaper +Zarya
Bernoulli equation + mathematics

Excluding words from the query. Logical NOT (-):
As you know, information garbage is often encountered when composing a request. To remove it, exclusion operators are used as standard - logical “NOT”. In Google, this operator is represented by a minus sign. Using this operator, you can exclude from search results those pages that contain certain words in the text. Used like the "+" operator before the excluded word.

For example:
Crane well-bird
Dead Souls - novel

Search for an exact phrase (""):
In practice, searching for an exact phrase is required either to search for the text of a specific work, or to search for specific products or companies in which the name or part of the description is a consistently repeated phrase. To cope with this task using Google, you need to enclose the query in quotation marks (meaning double quotation marks, which are used, for example, to highlight direct speech).

For example:
The work "Quiet Don"
“It was cold outside, although this did not prevent Boris from carrying out his plans”

By the way, Google allows you to enter no more than 32 words into the query bar!

Word truncation (*):
Sometimes you need to look for information about a word combination in which one or more words are unknown. For these purposes, instead of unknown words, the “*” operator is used. Those. "*" - any word or group of words.

For example:
Master and *
Leonardo * Vinci

cache operator:
The search engine stores the version of the text that is indexed by the search spider in a special storage format called a cache. A cached version of a page can be retrieved if the original page is unavailable (for example, the server on which it is stored is down). A cached page is shown as it is stored in the search engine's database and is accompanied by a notice at the top of the page indicating that it is a cached page. It also contains information about the time the cached version was created. On the page from the cache, the query keywords are highlighted, and each word is highlighted in a different color for user convenience. You can create a request that will immediately return a cached version of a page with a specific address: cache: page_address, where instead of “page_address” is the address of the page saved in the cache. If you need to find any information in a cached page, you need to write a request for this information separated by a space after the page address.

For example:
cache:www.bsd.com
cache:www.knights.ru tournaments

We must remember that there should not be a space between ":" and the page address!

Filetype operator:
As you know, Google indexes not only html pages. If, for example, you needed to find some information in a file type other than html, you can use the filetype operator, which allows you to search for information in a specific file type (html, pdf, doc, rtf...).

For example:
Specification html filetype:pdf
Essays filetype:rtf

Operator info:
The info operator allows you to see the information that Google knows about this page.

For example:
info:www.wiches.ru
info:www.food.healthy.com

Site operator:
This operator limits the search to a specific domain or site. That is, if you make a request: marketing intelligence site:www.acfor-tc.ru, then the results will be obtained from pages containing the words “marketing” and “intelligence” on the site “acfor-tc.ru” and not on others parts of the Internet.

For example:
Music site:www.music.su
Books site:ru

Link operator:
This operator allows you to see all the pages that link to the page for which the request was made. Thus, the request link:www.google.com will return pages that contain links to google.com.

For example:
link:www.ozone.com
Friends link:www.happylife.ru

allintitle operator:
If you start a query with the allintitle operator, which translates as “everything is in the title,” then Google will return texts in which all the words of the query are contained in the titles (inside the TITLE tag in HTML).

For example:
allintitle: Free software
allintitle: Download music albums

intitle operator:
Shows pages in which only the word immediately after the intitle operator is contained in the title, and all other query words can be anywhere in the text. Putting the intitle operator before each word of the query is equivalent to using the allintitle operator.

For example:
Programs intitle: Download
intitle: Free intitle: download software

allinurl operator:
If the query begins with the allinurl operator, then the search is limited to those documents in which all the query words are contained only in the page address, that is, in the url.

For example:
allinurl:rus games
allinurl:books fantasy

inurl operator:
The word that is located directly together with the inurl operator will be found only in the address of the Internet page, and the remaining words will be found anywhere in such a page.

For example:
inurl:books download
inurl:games crack

Operator related:
This operator describes pages that are "similar" to a specific page. Thus, the query related:www.google.com will return pages with similar topics to Google.

For example:
related:www.ozone.com
related:www.nnm.ru

The define statement:
This operator acts as a kind of explanatory dictionary, allowing you to quickly get a definition of the word that is entered after the operator.

For example:
define: Kangaroo
define: Motherboard

Synonym search operator (~):
If you want to find texts containing not only your keywords, but also their synonyms, then you can use the “~” operator before the word for which you want to find synonyms.

For example:
Types of ~metamorphoses
~Object orientation

Range operator (..):
For those who have to work with numbers, Google has made it possible to search for ranges between numbers. In order to find all pages containing numbers in a certain range “from - to”, you need to put two dots (..) between these extreme values, that is, the range operator.

For example:
Buy a book $100..$150
Population 1913..1935

Here are all the Google query language operators I know. I hope they will somehow make the process of finding the information you need easier. In any case, I use them very often and I can say with confidence that when using them I spend significantly less time searching than without them.

Good luck! And may the Force be with you.

Tags: search, operators, Google

The Facebook interface is strange and in some places completely illogical. But it just so happens that almost everyone I talk to ended up there, so I have to endure it.

Much about Facebook is not obvious. I tried to collect in this post what I did not find right away, and many probably have not found until now.

Ribbon

By default, Facebook generates a feed of popular posts. However, it can be completely different on different computers. To force Facebook to generate a “regular” timeline, click the checkbox to the right of the word “News Feed” and select “Latest” there.

Unfortunately, in the Android mobile app, the feed is formed only by popularity.

Cleaning the tape

On Facebook, I always add as friends everyone who asks, but I don’t want to read any nonsense in my feed at all. In order to remove unnecessary publications from your feed, there is no need to remove anyone from your friends list, just disable the subscription. As soon as you see something unnecessary in your feed, click the checkbox on the right and select “Unsubscribe to...”. After this, this user's posts will never appear in your feed again.

Notifications

When you leave any comment on any post or photo, Facebook will start notifying you of any new comments. To refuse this, you need to turn off notifications. For different objects this is done in different places. With the status, everything is simple - click the checkbox to the right of the status and select “Do not receive notifications”.

Unfortunately, you cannot unsubscribe from comments in the Android mobile app.

Search by messages

Facebook has a search for private messages, but few people know where it is hidden. Click on the messages button, then click "show all" at the bottom of the window that opens.

The message interface will open, with a second search bar appearing at the top.

There you can search for any words in all personal messages written during your entire use of Facebook.

Fighting Messenger

Facebook requires mobile devices to have a separate messaging app, Facebook Messenger. Many people really don't like him. For now, there is a way to continue messaging on Facebook itself. When Facebook once again refuses to show messages, requiring you to install Messenger, go to the application manager (in Android - System Settings - Applications), find Facebook there and click the "Erase data" button. After that, launch Facebook and re-enter your username and password. After this, messages will work for some time, although Facebook will periodically display a window asking you to install Messenger.

Action Log

It's often very difficult to find something on Facebook. The following diagram helps a little. If you see something that might be useful later, give it a like. In the future, this like will be used to find a publication in the activity log. To open the log, click the small checkmark in the upper right corner of the interface and select “Action Log” in the menu that opens.

Inserting a publication

Every post on Facebook has an "Insert Post" link. It produces a code that can be inserted into any site where you can insert html (including LiveJournal). Unfortunately, the ability to embed videos seems to have been closed. It worked a week ago, but now on any view it says “This Facebook post is no longer available. It may have been deleted or its privacy settings have been changed.”

Disable video autoplay

By default, Facebook automatically plays all videos in your feed without sound. On mobile devices this can be a problem as it consumes a lot of bandwidth.

In the browser, video autoplay is disabled as follows: click the checkmark in the upper right corner, there are settings, then video.

In Android - click the three bars on the right in the icon line, there "Application Settings" - "Autoplay video" - set "Off." or "Wi-fi only". In the latter case, videos will autoplay only when connected via Wi-Fi.

Go to publication

In order to go from the feed to a specific publication, just click on the publication date, and a link to the publication can be obtained by simply right-clicking on the date and selecting “Copy link” there. Thanks for this advice samon , zz_z_z , borhomey .

Surely, the mysterious Facebook still has many secrets that I haven’t gotten to yet.

If you know about other Facebook secrets, write in the comments, I’ll add them to the post.


Saved

Guys, we put our soul into the site. Thank you for that
that you are discovering this beauty. Thanks for the inspiration and goosebumps.
Join us on Facebook And In contact with

Today, almost every person has their own Facebook profile, but not everyone knows the capabilities of this social network.

website I decided to teach you some of the intricacies of Mark Zuckerberg’s brainchild.

1. Read hidden messages

Few people know that Facebook has two mailboxes. One of them is for messages from people who are not your Facebook friends. If you didn't know about the second mailbox, then you most likely missed invitations to various events from friends of your friends or proposals for a meeting from former work colleagues. To read these messages, you need to click on the “Messages” icon, then click on the “Correspondence Requests” button and execute the “View filtered requests” command.

2. Check where you came from to your page

If you doubt that you have left your page on your friend's computer, you can click the small downward arrow in the upper right corner of your screen and select “Settings.” Click on the “Security” button from the list of commands that appears on the left, and then select “Where you are signed in from” - this way you can track all browsers on which you are logged into your account at any time. To leave your page on any browser, simply click “End Action”.

3. Be sure that no one will hack you

If you have any doubts about Facebook’s security system, you can use the “Login Confirmation” button in the same “Security Settings” section. Thus, the security system will require you to enter a password when logging into your account from an unknown device. If you access your page from a device you have never used, you will be required to use a password that will be sent to your phone.

4. Assign someone responsible for your profile

I wonder what happens to our social media profile when we no longer use it? On Facebook, you also have the opportunity to select the person who will be responsible for your page in the event of your death by clicking on the “Trusted Contacts” button in the same “Security Settings”. A trusted contact will not be able to post news or correspond on your behalf. His powers include changing his profile photo and responding to friend requests.

5. Allow yourself to be nostalgic

Sometimes we want to look again at our old ridiculous photos and old correspondence with our best friend. To do this, you don’t have to spend hours scrolling the mouse wheel, but you can simply click on the three dots icon in your friend’s profile and execute the “View Friendship” command.

6. Remember your Facebook past

On Facebook, you have the ability to view everything you've ever liked, commented on, or posted. Simply click on the upside-down arrow in the top right corner of your page and select “Activity Log.”

7. Walk in someone else's shoes

If you want to know what your profile looks like to people who aren't your friends, click on the three dots to the right of "View Activity Log" and select "View As..." This will give you a great opportunity to see your profile through the eyes of strangers you people.

Additional commands to the Google search engine allow you to achieve much better results. With their help, you can limit the scope of your search, and also indicate to the search engine that you do not need to view all pages.

Operator "Plus" (+):
For a situation where you need to force some mandatory word into the text. To do this, use the “+” operator before the required word. Suppose, if we have a request for Terminator 2, as a result of the request we will have information about the film Terminator, Terminator 2, Terminator 3. To leave only information about the film Terminator 2, we put a “plus sign” in front of the two: just a little about “Home Alone” I". If we have a request like Terminator +2.

For example:
Magazine +Murzilka
+Bernoulli equation

Site operator:

For example:
Music site:www.site
Books site:ru

Link operator:

For example:
link:www.site
Friends link:www.site

Range operator (..):
For those who have to work with numbers, Google has made it possible to search for ranges between numbers. In order to find all pages containing numbers in a certain range “from - to”, you need to put two dots (..) between these extreme values, that is, the range operator.

For example:
Buy a book $100..$150

Excluding words from the query. Logical NOT (-):
To exclude any words, the minus (-) exclusion operators are used. That is, a logical “NOT”. Useful in cases where direct search results are too cluttered

For example:
Aquarium group - we are looking for everything about the aquarium excluding the "Aquarium" group

Search for exact phrase (""):
Useful for searching for a specific text (an entire article based on a quote). To do this, you need to enclose the query in quotes (double quotes).

For example:
“And the dungeon is cramped, and there is only one freedom And we always trust in it” - we are looking for Vysotsky’s ballad one line at a time

Note: Google allows you to enter a maximum of 32 words per search string.

Word truncation (*):
Sometimes you need to look for information about a word combination in which one or more words are unknown. For these purposes, the “*” operator is used instead of unknown words. Those. “*” is any word or group of words.

For example:
Master and *
Leonardo * Vinci

cache operator:
The search engine stores the version of the text that is indexed by the search spider in a special storage format called a cache. A cached version of a page can be retrieved if the original page is unavailable (for example, the server on which it is stored is down). A cached page is shown as it is stored in the search engine's database and is accompanied by a notice at the top of the page indicating that it is a cached page. It also contains information about the time the cached version was created. On the page from the cache, the query keywords are highlighted, and each word is highlighted in a different color for user convenience. You can create a request that will immediately return a cached version of a page with a specific address: cache:page_address, where instead of “page_address” is the address of the page saved in the cache. If you need to find any information in a cached page, you need to write a request for this information separated by a space after the page address.

For example:
cache:www.site
cache:www.site tournaments

We must remember that there should not be a space between “:” and the page address!

filetype operator:
As you know, Google indexes not only html pages. If, for example, you needed to find some information in a file type other than html, you can use the filetype operator, which allows you to search for information in a specific file type (html, pdf, doc, rtf...).

For example:
Specification html filetype:pdf
Essays filetype:rtf

Operator info:
The info operator allows you to see the information that Google knows about this page.

For example:
info:www.site
info:www.site

Site operator:
This operator limits the search to a specific domain or site. That is, if you make a request: marketing intelligence site:www.site, then the results will be obtained from pages containing the words “marketing” and “intelligence” on the site “www..

For example:
Music site:www.site
Books site:ru

Link operator:
This operator allows you to see all the pages that link to the page for which the request was made. Thus, the request link:www.google.com will return pages that contain links to google.com.

For example:
link:www.site
Friends link:www.site

allintitle operator:
If you start a query with the allintitle operator, which translates as “everything is in the title,” then Google will return texts in which all the words of the query are contained in the titles (inside the TITLE tag in HTML).

For example:
allintitle:Free software
allintitle:Download music albums

intitle operator:
Shows pages where only the word immediately following the intitle statement is in the title, and all other query words can appear anywhere in the text. Putting the intitle operator before each word of the query is equivalent to using the allintitle operator.

For example:
Programs intitle:Download
intitle:Free intitle:download software

allinurl operator:
If the query begins with the allinurl operator, then the search is limited to those documents in which all the query words are contained only in the page address, that is, in the url.

For example:
allinurl:rus games
allinurl:books fantasy

inurl operator:
The word that is located directly together with the inurl operator will be found only in the address of the Internet page, and the remaining words will be found anywhere in such a page.

For example:
inurl:books download
inurl:games crack

Operator related:
This operator describes pages that are "similar" to a specific page. Thus, the query related:www.google.com will return pages with similar topics to Google.

For example:
related:www.site
related:www.site

The define statement:
This operator acts as a kind of explanatory dictionary, allowing you to quickly get a definition of the word that is entered after the operator.

For example:
define:Kangaroo
define:Motherboard

Synonym search operator (~):
If you want to find texts containing not only your keywords, but also their synonyms, then you can use the “~” operator before the word for which you want to find synonyms.

For example:
Types of ~metamorphoses
~Object orientation

Range operator (..):
For those who have to work with numbers, Google has made it possible to search for ranges between numbers. In order to find all pages containing numbers in a certain range “from - to”, you need to put two dots (..) between these extreme values, that is, the range operator.

For example:
Buy a book $100..$150
Population 1913..1935