Add-on development – Get the current URL of the post / page

I have it to work with this:

$ url = home_url (add_query_arg (array (), $ wp-> request));

However, if the permanent link is simple, all I get is the URL of the home page (instead of the URL of the post).

So, what is the best way to get the current publication or the link to the address of the page?

News on the google page less than 20 minutes.

These are Google's news editors and you can become one if you meet all the requirements. Google has eliminated approvals over the years and "fake news" sites recently. You can also buy one of these startup sites already approved by GN for $ 1500- $ 2000. You do not have to worry about SEO on these sites, because they are quickly classified in Google News by default (already approved), as you said to the few minutes of posting content

I used to have one of these years ago and get a lot of free traffic from Google, but you always have to produce new content. That is one of the requirements. In addition, most of the content is not "evergreen", so after a few days, that "news" is old and traffic decreases for that article. So you will have to form a team of content writers "authors". However, the financial niche can pay well with AdSense ads.

The viability of owning one of these sites is that you can generate more income than you spend producing the content. The generic news will be difficult, the financial news is more profitable as I mentioned.

You can search Google for the requirements for inclusion in GN.

Reactives – React initiates me a previous project! This page is using the development build of React. 🚧

I am doing a course of react .. and I downloaded a project already finished in the command line I gave npm run to the project that I downloaded the explore and everything super.

When wanting to start my first project the course and give npm start does not load anything and I see that I load the Favicon of the previous project that disarms and the React tool for chrome tells me the following: This page is using the development build of React . 🚧

Agjunto pantallao.

enter the description of the image here

enter the description of the image here

seo – Google selects an unrelated page as Canonical for many other pages, preventing our pages from being indexed

We have pages like:

https://www.signalogic.com/index.pl?page=surveillance_video_suspect_detection

for which Google continues to select this page as canonical:

http://www.signalogic.com/index.pl?page=sw

All our pages have a https rel = canonical tag, which the Search Console correctly displays as canonical declared by the user.

Why does Google's indexing persist in this? The two pages are not related, not even close to the same content. What we declare canonical is not "credible" or credible in any way? Somehow Google is forced to the unrelated page. What method do I need to overcome this?

Read-only page problem. No interactive browser

Hi. I wanted a simple web page with a click-to-toggle background image feature. I found one online that works very well, but it has a major flaw. The page is not from the interactive browser. It seems to be in read-only mode, or something like that.

that is to say; The links are inactive, the video uploads are integrated but not reproduced, I can not copy / save embedded images, or highlight and copy the text of the page to my clipboard.

There are 4 files used for this template. Html page, css style sheet, jquery.js files and script.js.
The coding is not very long and complicated, but I have no idea where the problem lies.
SEMrush

Here is a direct link to the page on my site. Promise, not spam, malware, or adult content. The source code must be visible in Firefox or Chrome. But if it is preferable, I compress the 4 files in a folder to download and see in a text editor, I will be happy to do so.

Please, if someone has time to take a look, I would greatly appreciate it. I really like the design, but it is not good for my needs in the current condition. Thank you

Edit: my link does not seem to be working. Are the links maintained for approval? Here is the url of the page in plain text. http://twilight.blue/design/bgc/

Add-ons development – Configuration API – Dynamic fields on the configuration page – hide / show according to the value of another field

I created a class to manage the configuration of my add-on, this works well apart from one thing: I would like to hide fields lal_login_text, lal_logout_text Y lal_account_text along with their labels generated by add_settings_field Yes there are icon selected in lal_display_type field. The icon is predetermined, so these fields should be hidden by default, but they will appear as soon as the user selects golf course from the drop-down

I tried to apply style = "display: none" based on the value selected in the function callbacks, but it worked only in the field, not on its label and the change took place after saving the configuration, not immediately.

Any help is appreciated.

class login_account_logout_settings {

$ private options;
private $ settings_page_name;
private $ settings_menu_name;

public function __build () {

$ this-> settings_page_name = & # 39; login-account-logout & # 39 ;;
$ this-> settings_menu_name = & # 39; Login Account Logout & # 39 ;;

// Initialize and register configurations.
add_action (& # 39; admin_init & # 39 ;, array ($ this, & # 39; register_settings & # 39;));
// Add configuration page.
add_action (& # 39; admin_menu & # 39 ;, array ($ this, & # 39; add_settings_page & # 39;));
// Add configuration link to the add-ons page.
add_action (& # 39; plugin_action_links _ & # 39 ;. plugin_basename (__FILE__), array ($ this, & # 39; add_settings_link & # 39;));
}

public function register_settings () {

register_setting (& # 39; lal_settingz & # 39 ;, & # 39; lal_settingz & # 39 ;, array ($ this, & # 39; sanitize & # 39;));

// ID / title / callback / page
add_settings_section (& # 39; configuration_section & # 39 ;, __ (& # 39; Configuration & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; print_section_info & # 39;) , $ this-> settings_page_name);

// ID / title / callback / page / section
add_settings_field (& # 39; lal_display_type & # 39 ;, __ (& # 39; Screen Type & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_display_type_callback & # 39 ;), $ this-> settings_page_name, & # 39; configuration_section & # 39;);
add_settings_field (& # 39; lal_login_text & # 39 ;, __ (& # 39; Login link text & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_login_text_callback & # 39 ;), $ this-> settings_page_name, & # 39; configuration_section & # 39;);
add_settings_field (& # 39; lal_logout_text & # 39 ;, __ (& # 39; Logout link text & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_logout_text_callback & # 39 ;), $ this-> settings_page_name, & # 39; configuration_section & # 39;);
add_settings_field (& # 39; lal_account_text & # 39 ;, __ (& # 39; Text of the account link & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_account_text_callback & # 39;), $ this-> settings_page_name, & # 39; configuration_section & # 39;);
add_settings_field (& # 39; lal_position & # 39 ;, __ (& # 39; Position & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_position_callback & # 39;) , $ this-> settings_page_name, & # 39; configuration_section & # 39;);
add_settings_field (& # 39; lal_container & # 39 ;, __ (& # 39; Container selector & # 39 ;, & # 39; login-account-logout & # 39;), array ($ this, & # 39; lal_container_callback & # 39; ), $ this-> settings_page_name, & # 39; configuration_section & # 39;);
}

public function add_settings_page () {
// This page will be under "Settings"
add_options_page (
& # 39; Admin Settings & # 39 ;, $ this-> settings_menu_name, & # 39; manage_options & # 39 ;, $ this-> settings_page_name, array ($ this, & # 39; create_settings_page & # 39;)
);
}

/ **
* Get the option that is saved or the default.
*
* @param string $ index. The option that we want to obtain.
* /
public function lal_get_settings ($ index = false) {

$ defaults = array (& # 39; lal_display_type & # 39; => & # 39; icon & # 39 ;, & # 39; lal_login_text & # 39; => & # 39; Login & # 39 ;, & # 39; lal_logout_text & # 39 ; => & # 39; Log out & # 39 ;,
& # 39; lal_account_text & # 39; => & # 39; My account & # 39 ;, & # 39; lal_position & # 39; => & # 39; after & # 39 ;, & # 39; lal_container & # 39; => & # 39; nav.secondary-navigation & # 39;);
$ settings = get_option (& # 39; lal_settingz & # 39 ;, $ defaults);

if ($ index & & isset ($ settings[ $index ] )) {
return $ settings[ $index ];
}

returns $ settings;
}

public function create_settings_page () {

$ this-> options = $ this-> lal_get_settings ();

?>
        

Sign in Log out

settings_page_name); send button (); ?>
<? php } public function add_settings_link ($ links) { $ links = array_merge (array ( & # 39;& # 39 ;; foreach ($ items like & $ item) { $ selected = (isset ($ this-> options['lal_display_type'])) && ($ item == $ this-> options['lal_display_type'])? & # 39; selected = "selected" & # 39 ;: & # 39; & # 39 ;; $ item = __ ($ item, & # 39; login-account-logout & # 39;); printf ( & # 39;& # 39 ;, esc_attr ($ item), $ selected ); } printf ( & # 39;

% 1 $ s

& # 39 ;, __ (& # 39; Choose between an icon that leads to the My Account page and dynamic login / account / logoff links.) The icon saves space on the screen and appears immediately even for slow websites. The links offer direct access at the end of the session, but they take up more space and are displayed as soon as they execute the scripts on the website. & # 39;, & # 39; login-account-logout & # 39;) ); } public function lal_login_text_callback () { printf ( & # 39;& # 39 ;, isset ($ this-> options['lal_login_text'] )? esc_attr ($ this-> options['lal_login_text']): & # 39; & # 39; ); } public function lal_logout_text_callback () { printf ( & # 39;& # 39 ;, isset ($ this-> options['lal_logout_text'] )? esc_attr ($ this-> options['lal_logout_text']): & # 39; & # 39; ); } public function lal_account_text_callback () { printf ( & # 39;& # 39 ;, isset ($ this-> options['lal_account_text'] )? esc_attr ($ this-> options['lal_account_text']): & # 39; & # 39; ); } public function lal_position_callback () { $ items = array (& # 39; before & # 39 ;, & # 39; after & # 39;); eco & # 39;

% 1 $ s

& # 39 ;, __ (& # 39; Choose if you want to show the icon / links before other items in the container (eg, shopping cart) or after them.If the container is empty, this setting will not make a difference. & # 39; , & # 39; login-account-logout & # 39;) ); } public function lal_container_callback () { printf ( & # 39;

% 2 $ s

& # 39 ;, isset ($ this-> options['lal_container'] )? esc_attr ($ this-> options['lal_container']): & # 39; & # 39 ;, __ (& # 39; jQuery selector to find an element that serves as container for icons / links.) All popular CSS selectors and most of the less common selectors are valid jQuery selectors & # 39 ;, & # 39; login- account-logout & # 39;) ); } } if (is_admin ()) { $ lal_settingz_page = new login_account_logout_settings (); }

Guaranteed 1 keyword Full SEO Google 1st page Classification service of your site in 30 days. for $ 50

Guaranteed 1 keyword Full SEO Google 1st page Classification service of your site in 30 days.

HI

I'm here to provide you full SEO with white hat services (on the page + outside the page). Only one package to get your site on the first page of Google. Now, if you request this service, get the best job and the best package for your
website.
Order my guaranteed services and get full SEO for the first page in Google. You will get the 1st page ranking and the high quality traffic with my full SEO job. Click on
ORDER NOW and start.

Manual service with daily update of 30 days.
Unique domains of backlinks.
Done according to the latest google update 2019
100% google safe animals.
Your order will be delivered in due time.
We guarantee security and improvements.
focus on the quality of each link back,
All languages, exceptionally.
Customer service 24/7. We will promote your Google ranking, SERP and rank it higher in the search engine. Our latest SEO package is to improve.
your ranking in Google. We are manually sending your website to many different high authority and trust sites in 30 days of drip feed. We update the
Report daily. You know exactly what we are doing every day.
Well, there are a lot of people who offer thousands of backlinks, but only backinks will not help you. We can offer you the best quality compared to the others, since they use software, but our backlinks are manual.
created by our expert SEO team. It's your decision. You can choose quality or quantity. The choice seems clear.

.

Fallen in the ranking of the Google page

I noticed this, My page was on the first page of the Google search result and after 2 days it disappeared. I'm worried. Any ideas or suggestions about this?

security – What is page hijacking?

I do not really support the definition given in the link you provided.

The hijacking of pages suggests that a third party assumes some critical functions of your site, such as your login page or your payment page. On the other hand, it is also a term used to describe the configuration of a copy of a site to trick users into sharing critical information.

I think these are two general scenarios (and I would love for anyone with more knowledge about the subject to propose corrections or additions):

  1. A malicious third party configures a site that is identical to the one being targeted. Then, they use various techniques to ensure that the user ends up in their own version of the site that is intended. Once there, the user can not discern between the original and the copy, so they proceed to do the things they would normally do, such as inserting their credentials, personal information, buying things. This information / money is directed to the third party who created the copy.

  2. A malicious third party manages to replace part of the site with a copy they made. For example, they modify the "login" button and direct it to another sign-in form they actually made, or manage to insert a malware and execute it in the background of the legitimate site.

browser: find the fastest way to enter information on the web page

There is a web page with an http URL that enters the information and sends me to the next step after importing them.
Now I want to send this information in a different way (for example, through a request) and then I will enter my next page in my browser.

The reason for this is the higher data entry speed, since I want to register in a site that has a limited capacity.

The steps are the following.
Select the type of product >> Data entry >> Check the correction of the information >> Send me to the payment panel.

What should be done through the browser. If you know a faster way, please suggest me.