WordPress Тест Upwork часть 1

How to use session in wordpress in plugin development.
      function register_session(){
    if( !session_id() )
        session_start();
}
add_action('init','register_session');

      $_SESSION['arrayImg'] = $abc;

      function resolve_the_ajax_request(){
    if( !session_id())
        session_start();
    $abc = $_SESSION['arrayImg'];
}

      All of the above

Theme Development style by external css.
      get_stylesheet_directory_uri(); = Returns your style.css directory as URL. It MIGHT be the same than No1. But No3 referes to the style.css directory of your parent OR, if in use, CHILD Theme. While No1 always returns your parent theme´s style.css directory Example: xyz/wp-content/themes/yourthemename/childtheme
      get_stylesheet_uri() = Returns your style.css path from your current active theme. It is the same than no1 but with /style.css at the end. Example: xyz/wp-content/themes/yourthemename/style.css
      get_template_directory_uri(); = Directory of your current (parent) theme without trailing slash at the end. Example: xyz/wp-content/themes/yourthemename
      All of the above

Possible to grab keywords from a post in the loop in wordpress.
      Yes
      No

What are disadvantages of WordPress?

      Using several plugins can make website heavy to load and run.
      PHP knowledge is required to do modification or changes in the WordPress website.
      Sometimes software needs to be updated to keep the WordPress up to date with the current browsers and mobile devices. Updating of WordPress version leads to loss of data so it requires the backup copy of website.
      Modifying and formatting the graphic images and tables is difficult.
      All of the above

Is it possible to create a good UI/UX using only CSS and no Javascript?
      Yes
      No

Wordpress redirect all .php files except core wordpress files.

      RewriteCond %{THE_REQUEST} \s(.+?)\.php\s [NC]
RewriteRule !^wp- %1 [R=301,L,NC]

      RewriteCond %{THE_REQUEST} ^[A-Z]+\s.+\.php\sHTTP/.+
RewriteRule ^(.+)\.php $1 [R=301,L]

      RewriteCond %{THE_REQUEST} & [A-Z]+\s.+\.php\sHTTP/.+
RewriteRule ^(.+)\.php $1 [R=301,L]

      RewriteCond %{THE_REQUESTS} &[A-Z]+\s.+\.php\sHTTP/.+
RewriteRule ^(.+)\.php $1 [R=301,L]

What is User Management?
      It allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.

      It not allows managing the user information such as changing the role of the users to (subscriber, contributor, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.

      It allows managing the user information such as changing the role of the users to (subscriber, contributor, pulgin, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.

      It allows managing the user information such as changing the role of the users to (subscriber, contributor, plugin, theme, author, editor or administrator), create or delete the user, change the password and user information. The main part of the user manager is Authentication.

What is the WordPress navigation menu without a submenu?
      wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu','depth' => 1) ) )
      wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) );
      wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu','depth' => 'outside') ) );
      All of the above

Wordpress Get the Page ID outside the loop.
      global $wp_query;
$page_object = $wp_query->get_queried_object();
$page_id     = $wp_query->get_queried_object_id();

      global $wp_query;
$page_object = $wp_query->get_queried_object();
$page_id     = get_query_var('page_id');
      
$page = get_query_var('page_id');

      All of the above

How can you get all existing tags outside the loop in Wordpress?

      $tag = get_tag();
$html = '<div class="post_tags">';
foreach ( $tag as $tags ) {
    $tag_link = get_tag_link( $tags->term_id );
    $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
    $html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;

      $tags = get_tags();
$html = '<div class="post_tags">';
foreach ( $tags as $tag ) {
    $tag_link = get_tag_link( $tag->term_id );
    $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
    $html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;

      $tag = get_tag();
$html = '<div class="post_tags">';
foreach ( $tag as $tags ) {
    $tag_link = get_tag_link( $tag->term_id );
    $html .= "<a href='{$tag_link}' title='{$tag->name} Tag' class='{$tag->slug}'>";
    $html .= "{$tag->name}</a>";
}
$html .= '</div>';
echo $html;

      All of the above

WordPress Taxonomy, listing ONLY the single taxonomies.
      $term_ids = get_terms( 'SectorCategories', ['fields' => 'ids'] );
if ( get_query_var( 'paged' ) ) {
    $paged = get_query_var( 'paged' );
} elseif ( get_query_var( 'page' ) ) {
    $paged = get_query_var( 'page' );
} else {
    $paged = 1;
}
$args = [
    'post_type' => 'sectors',
    'posts_per_page' => 5,
    'paged' => $paged,
    'tax_query' => [
        [
            'taxonomy' => 'SectorCategories',
            'terms' => $term_ids,
        ]
    ],
    // REST OF YOUR ARGUMENTS
];
$loop = new WP_Query( $args );

      $term_ids = get_terms( 'SectorCategories', array( 'fields' => 'ids' ) );
if ( get_query_var( 'paged' ) ) {
    $paged = get_query_var( 'paged' );
} elseif ( get_query_var( 'page' ) ) {
    $paged = get_query_var( 'page' );
} else {
    $paged = 1;
}
$args = array(
    'post_type' => 'sectors',
    'posts_per_page' => 5,
    'paged' => $paged,
    'tax_query' => array(
        array(
            'taxonomy' => 'SectorCategories',
            'terms' => $term_ids,
        )
    ),
    // REST OF YOUR ARGUMENTS
);
$loop = new WP_Query( $args );

if ( $loop->have_posts() ) {
    while ( $loop->have_posts() ) {
    $loop->the_post();

        the_title();

    }
    next_posts_link( 'Next posts', $loop->max_num_pages );
    previous_posts_link( 'Previous posts' );
    wp_reset_postdata();
}

All of the above

What are the positive aspects of Wordpress?
      Easy installation and upgrade, In-built SEO engine
      Easy theme system, Flexibility
      Multilingual- available in more than 70 languages, Own data- no unwanted advert on your website
      Flexibility and Easy publishing option
      All of the above

How to create a custom theme options page in Wordpress?

      function setup_theme_admin_menus() {  
    add_submenu_page('themes.php',   
        'Front Page Elements', 'Front Page', 'manage_options',   
        'front-page-elements', 'theme_front_page_settings');   
}  
function theme_front_page_settings() {  
    echo "Hello, world!";  
}  

      function setup_theme_admin_menus() {  
    add_submenu_page('themes.php',   
        'Front Page Elements', 'Front Page', 'manage_options',   
        'front-page-elements', 'theme_front_page_settings');   
}  
function theme_front_page_settings() {  
    echo "Hello, world!";  
}
add_action("admin_menus", "setup_theme_admin_menus");

      function setup_theme_admin_menus() {  
    add_submenu_page('themes.php',   
        'Front Page Elements', 'Front Page', 'manage_options',   
        'front-page-elements', 'theme_front_page_settings');   
}  
function theme_front_page_settings() {  
    echo "Hello, world!";  
}
add_action("admin_menu", "setup_theme_admin_menus");

      All of the above

What are the template tags used WordPress include the following?
      The the_title() template tag is used to display the post title
      wp_list_cats() is  for display categories
      get_header() for getting header, get_footer() for display the footer content on page
      get_sidebar() for display the sidebar on page
      All of the above

What are the template tags used WordPress include the following?
Note: There may be more than one right answer.
      get_footer()
      get_sidebar()
      wp_title_cats()
      get_header()
      All of the above

How to list tables in wordpress plugin development?
      global $wpdb;
$mytables=$wpdb->get_results("SHOW TABLES");
foreach ($mytables as $mytable)
{
    foreach ($mytables as $t)
    {       
        echo $t . "<br>";
    }
}

$mytables=$wpdb->get_results("SHOW TABLES");
 foreach ($mytables as $mytable)
  {
   echo $mytable;
  }

      global $wpdb;
$mytables=$wpdb->get_results("SHOW TABLES");
foreach ($mytables as $mytable)
{
    foreach ($mytable as $t)
    {       
        echo $t . "<br>";
    }
}

      $mytables=$wpdb->get_result("SHOW TABLES");
 foreach ($mytables as $mytable)
  {
   echo $mytable;
  }

 

What is the difference between the wp_title and the_title tags?
      wp_title() function is for use inside "The Loop" to display the title of a Page.  the_title() on the other hand is used without "The Loop".
      wp_title() function is for use outside "The Loop" to display the title of a Page.  the_title() on the other hand is used within "The Loop".
      wp_title() function is for use inside "The Loop" to display the title of a Page.  the_title() on the other hand is used within "The Loop".
      All of the above

Features of WordPress?
      User Management, Media Management
      Theme System, Extend with Plugins
      Search Engine Optimized, Multilingual
      Importers
      All of the above

 Which option allows you to style each list item background or Wordpress Navigation separately?
      nav li:nth-child(1).current-menu-item {
    background-color: red;
}
nav li:nth-child(2).current-menu-item {
    background-color: blue;
}
nav li:nth-child(3).current-menu-item {
    background-color: green;
}

      nav li:nth-childs(1).current-menu-item {
    background-color: red;
}
nav li:nth-childs(2).current-menu-item {
    background-color: blue;
}
nav li:nth-childs(3).current-menu-item {
    background-color: green;
}

      nav li:nth-first-child(1).current-menu-item {
    background-color: red;
}
nav li:nth-second-child(2).current-menu-item {
    background-color: blue;
}
nav li:nth-last-child(3).current-menu-item {
    background-color: green;
}

      All of the above

How can you create a static page with WordPress?
      To create a static page in wordpress, in the page section you have to upload a php files to the server in the theme folder, and then select that as your template. This allows you to add any page and look that you wanted for your blog and it will remain static
      To create a static page in wordpress, WordPress is no doubt a good CMS, but Drupal and Joomla are among the best CMS you can work with
      Theme selection differs according to the requirement, but an ideal theme would be something that would not restrict to use the number of pages, plugins or static homepage
      All of the above

Show posts in theme development.

      <?php get_header(); ?>
<?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
        <article>
            <header><h1><?php the_title();?></h1></header>
            <?php the_content(); ?>
        </article>
    <?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>

      <?php get_header(); ?>
<?php if (have_posts()) : ?>
    <?php while (have_post()) : the_post(); ?>
        <article>
            <header><h1><?php the_title();?></h1></header>
            <?php the_content(); ?>
        </article>
    <?php endwhile; ?>
<?php endif; ?>
<?php get_footer(); ?>

      Both of the above

      None

You can do meta keywords tag from post categories and tags in header.php?
      <?php
if (is_singular()):
    global $post;
    setup_postdata($post);
    ?>
    <meta name="description" content="<?php the_excerpt_rss(); ?>" />
<?php endif; ?>

      <?php if (is_single()) {
  foreach((get_the_tags()) as $tag) {
    $keywords[] = strtolower($tag->name);
  }
  foreach((get_the_category()) as $category) {
  <meta name="description" content="<?php the_excerpt_rss(); ?>" />
  }
?>

      <?php if (is_single()) {
  foreach((get_the_tags()) as $tag) {
    $keywords[] = strtolower($tag->name);
  }
  foreach((get_the_category()) as $category) {
    $keywords[] = strtolower($category->cat_name);
  }
?>

      <?php if (is_single()) {
  foreach((get_the_tags()) as $tag) {
     global $post;
     setup_postdata($post);
  }
  foreach((get_the_category()) as $category) {
    $keywords[] = strtolower($category->cat_name);
  }
?>

Which submenu function do you use for settings?
      add_options_page (page_title, menu_title, capability, handle);
      add_posts_page (page_title, menu_title, capability, handle);
      add_users_page (page_title, menu_title, capability, handle);
      add_management_page (page_title, menu_title, capability, handle);
      add_theme_page (page_title, menu_title, capability, handle);

Which of the submenu functions will you use for Tools?
      add_pages_page (page_title, menu_title, capability, handle);
      add_users_page (page_title, menu_title, capability, handle);
      add_theme_page (page_title, menu_title, capability, handle);
      add_management_page (page_title, menu_title, capability, handle);
      add_options_page (page_title, menu_title, capability, handle);

How can you enable the featured image Thumbnails in WordPress?
      <?php the_post_thumbnail( 'thumbnail' ); ?>
      add_custom_background();
      add_theme_support( 'post-thumbnails' );
      <?php add_post_thumbnail( 'thumbnail' ); ?>

You can use the following code snippet for adding a theme options page to the admin menu?

      function add_theme_menu_item()
{
    add_menu_page("Theme Panel", "Theme Panel", "manage_options", "theme-panel", "theme_settings_page", null, 99);
}
add_action("admin_menu", "add_theme_menu_item");

      function simplex_menu() {
    add_theme_page('Simplex Flex Options', 'Simplex Options', 'edit_theme_options', __FILE__, 'simplex_options_page');
}
add_action('admin_menu', 'simplex_menu');

      <?php
add_action('admin_menu', 'add_appearance_menu');
function add_appearance_menu(){
     add_submenu_page( 'themes.php', $page_title, $menu_title, $capability, $menu_slug, $function);
}
?>

      All of the above

What are the types of actions hooks in wordpress used include the following?
Note: There may be more than one right answer.
      have_action()
      do_action()
      do_action_ref_array()
      did_action()
      None of the above

How you can save the Taxonomy custom meta data using the following code snippet?
      function register_taxonomy(
{
    'people',
    array('attachment:image', 'attachment:video', 'attachment:audio', 'post', 'page'),
    array(
    'labels' => array(
        'name' => __( 'People' ),
        'singular_name' => __( 'Person' ),
    ),
    'helps' => __('Separate names with commas.'),
    'rewrite' => array('slug' => 'person'),
    'query_var' => true,
    'show_ui' => true,
    'show_tagcloud' => true,
    'hierarchical' => false,
    )
);
}

      function save_social_account_custom_meta($termId)
{
    if ( !empty( $_POST['term_meta'] ) )
    {
        $term_meta = get_option( 'custom_taxonomy_meta_' . $termId );
        foreach ( $_POST['term_meta'] as $key => $val )
        {
            $term_meta[$key] = text_field($val);
        }
        update_option( 'custom_taxonomy_meta_' . $termId, $term_meta );
    }
}

      function register_taxonomy(
{
        'author',
        array('attachment:image', 'attachment:video', 'attachment:audio', 'post', 'page'),
        array(
    'labels' => array(
'name' => __( 'Authors' ),
'singular_name' => __( 'Author' ),
),
            'helps' => __('Separate authors with commas.'),
            'rewrite' => array('slug' => 'author'),
            'query_var' => 'author',
        )
    );
}

      function save_social_account_custom_meta($termId)
{
    if ( !empty( $_POST['term_meta'] ) )
    {
       array('attachment: termId', 'attachment:video', 'attachment:audio', 'post', 'page'),
        foreach ( $_POST['term_meta'] as $key => $val )
        {
            $term_meta[$key] = text_field($val);
        }
        update_option( 'custom_taxonomy_meta_' . $termId, $term_meta );
    }
}

You can show only parent categories, Using the wp_list_categories function?
      <ul> <?php wp_list_categories(); ?> </ul>
      <ul> <?php wp_list_pages('sort_column=menu_order'); ?> </ul>
      <ul> <?php wp_list_categories('depth=1'); ?> </ul>
      None of the above

How you will do all pages in alphabetical order using the wp_list_pages function?
      <ul> <?php wp_list_pages('sort_column=menu_order'); ?> </ul>
      <ul> <?php wp_alphabet_sorton(); ?> </ul>
      <ul> <?php wp_list_pages('sort_column=menu_order&exclude=12'); ?> </ul>
      <ul> <?php wp_list_pages(); ?> </ul>

You will use post excerpts as Meta descriptions, if category page use category description as meta description?

      <?php
 //Write come lines
if (is_single()) {
?>

      <?php
if (is_singular()):
    global $post;
    setup_postdata($post);
    ?>
    <meta name="description" content="<?php the_excerpt_rss(); ?>" />
<?php endif; ?>

      <?php
 //Write come lines
} else if(is_home() || is_page())  {
?>

<?php
 //Write come lines
} else if(is_category()) {
?>

The following variables you can use in this email are not explained entirely on the site options page? (choose all that apply)
Note: There may be more than one right answer.
      BLOG_URL
      SITE_NAME
BLOG_URL
      USERNAME
      None of the above

How can you modify the new role using the following code snippet?

      <?php  
$admin = get_role('administrator');
$PrivateRole -> remove_cap('read_private_pages');
?>

      <?php
$admin = get_role('administrator');
$caps = $admin->capabilities;
remove_role('designer');
?>

      <?php
add_role('designer', 'Designer', $caps);
remove_role('designer');
?>

      <?php
$PrivateRole = get_role('privatereader');
$PrivateRole -> remove_cap('read_private_pages');
?>

Which of the following is correct way to add fields to category edit form?

      add_action( '{custom-taxonomy-name}_edit_form_fields', 'add_edit_custom_fields');
      add_action( 'category_edit_form_fields', 'add_edit_custom_fields');
      add_action( '{custom-taxonomy-name}_add_form_fields', 'add_new_custom_fields');
      All of the above

Update the widget when new options has been entered, you will use following code look like?

      function update( $new_instance, $old_instance ) {
 foreach (get_post_types() as $post_type) {
      $instance[$post_type] = $new_instance[$post_type];
   }
    return $new_instance;
}

      function update( $new_instance, $old_instance ) {
    $instance = $new_instance;
    $instance['num_posts'] = strip_tags( $new_instance['num_posts'] );
    $instance['post_types'] = strip_tags( $new_instance['post_types'] );
}

      function update( $new_instance, $old_instance ) {
    $instance = $old_instance;
    $instance['title'] = strip_tags($new_instance['title']);
    return $instance;
}

      None of  the above

How you can hide the admin bar at the frontend using the following code in functions.php?
      add_filter(‘admin_bar’, add_filter‘__return_false’);
      add_filter(‘admin_bar’, add_menu‘__return_false’);
      add_filter(‘admin_bar’, ‘__return_false’);
      None of the above

What is the meta wrapper function for terms?
Note: There may be more than one right answer.
      update_term_meta()
      get_meta_term()
      delete_post_meta()
      get_user_meta()
      add_term_meta()

Which function will you use to add a sub menu in the Tools main menu?
      add_pages_page ($page_title, $menu_title, $capability, $handle);
      add_users_page ($page_title, $menu_title, $capability, $handle);
      add_theme_page ($page_title, $menu_title, $capability, $handle);
      add_management_page( $page_title, $menu_title, $capability, $menu_slug, $function )
      add_options_page (page_title, menu_title, capability, handle);

The ___ allows you to edit, delete, or view Media previously uploaded to your blog.
      Media Archive
      Media Library SubPanel
      Media Manager
      Media Monger
      none of these

Themes can be manually added to your blog site using cPanel.
      Only when deployed on Apache servers
      Only when deployed on IIS servers.
      Only when deployed on Mac OS servers.
      false
      true

WordPress uses a _____ in conjunction with the mod_rewrite Apache module to produce permalinks.
       a .config file
       an .htaccess file
       an XFN file
       an XML file
       none of these

The Administration Panel's ___ displays specific information relating to a particular navigation choice (i.e. adding a new post).
       footer
       header
       work area
       sidebar menu
       none of these

A/an ........... is a globally recognized avatar.
      alias
      alter ego
      avatron
      gravatar
      site_avatar

XFN stands for
      Xml File Notation
      Xml Friends Navigation
      Xml Friends Network
      eXtended File Naming
      None of the above

Pages can be organized into ............ and .............
      blurbs, comments
      pages, blurbs
      pages, comments
      pages, excerpts
      None of the above

................ make it possible for a person to have one avatar across the entire web.
      Avatars
      Gravatars
      Smileys
      Widgets
      None of the above

The Administration Panel's footer displays ____.
       Documentation Links
       Feedback links
       WordPress links
       WordPress versioning info
       all of these

A WordPress Theme benefits from ___.
       Allowing for web page results to be customized.
       Allowing the look and feel of a WordPress site to be quickly changed.
       Removing the need for WordPress users to learn CSS, HTML, and PHP in order to have an attractive site.
       Separating presentation styles and template files from system files.
       All of these

A minimal Theme consists of what two files?
       style.css and functions.php
       style.css and index.php
       style.css and template.php
       template.php and index.php
       theme.css and homepage.php

The advantages of using a weblog client include:
       Fancy formatting features.
       Features like cross-posting to multiple blogs.
       The ability to keep a local backup.
       The ability to save drafts.
       all of these

................ are the images, videos, recordings, and files you upload and use in your blog.
      Add-Ons
      Archives
      Media
      Plugins
      extensions

A theme ____ acts like a plugin and, if present in your theme, is automatically loaded during WordPress initialization.
       Bootstrap File
       Functions File
       Plugin File
       Setup File
       Stylesheet

A WordPress ................ is a collection of files that work together to produce a graphical interface with an underlying unifying design for a weblog.
      layout
      library
      plug-in
      theme
      widget

The titles and links along the left or right edge of your blog are known as the ..............
      footer
      header
      sidebar menu
      sideline menu
      widget panel

The ____ feature allows you to move blog data from another host into your new WordPress blog.
       Backup
       BlogCopy
       Copy
       Import
       merge

Company information and accessibility statements are best written as a ..............
      Page
      Post
      comment
      declaration
      link

Your site's home page, by default, features the ___ posts on your site.
       best
       most recent
       most viewed
       oldest
       pinned

.......... are condensed summaries of your blog posts.
      blurbs
      excerptshints
      tweets
      None of the above

In a manual installation, wp-config-sample.php should be renamed to __.
       wp-config-man.php
       wp-config.php
       wp-loop.php
       wp-main.php
       wp-startup.php

A global variable that contains the WordPress database object is
      $wpdb
      $wpdbobj
      $wpressdb
      None of the above
 
The ___ is used when the web page displays only one post.
       hyper post
       mini-post
       single-post
       simple-post
       none of these

Which of the following post types are by default available in WordPress installation. (choose all that apply)
Note: There may be more than one right answer.
      Post
      Page
      Blog
      Media
      Archive
      Category

A __ theme is a theme inheriting functionality of another (parent) theme.
       baby
       child
       descendant
       sibling
       sub

The bottom of your blog contains the ..............
      footer
      header
      posts
      sidebar menu
      None of the above

A ..............is a "faux" bookmark containing scripting code allowing a user to perform a function.
      applet
      blurb
      bookie
      bookmarklet
      footnet

The ___ allows you to edit, delete, or view Media previously uploaded to your blog.
       Media Archive
       Media Library SubPanel
       Media Manager
       Media Monger
       none of these

The most thorough and organized online documentation for WordPress is the WordPress ________.
      DocX
      Devex
      Codex
      Modex
      WikiX
      none of the above

What should be done if a fatal error message "Out of Memory" is received while adding a new post in WordPress?
       Contact hosting provider to get memory increased.
       Add clear('WP_CACHE', '0'); to your wp-config.php file.
       Add define('WP_MEMORY_LIMIT', '64M'); to your wp-config.php file.
       Install a cache plugin and clear the cache memory from it.

In a WordPress multsite, how can a new blog site be added from the Network Admin panel?
       add_action( $tag, $function_to_add, $priority, $accepted_args );
       define('WP_ALLOW_MULTISITE', true);
       do_action( 'wpmu_blog', $blog_id, $user_id, $domain, $path, $site_id, $meta );
       do_action( 'wpmu_new_blog', $blog_id, $user_id, $domain, $path, $site_id, $meta );

In this stock quote api for wordpress of yahoo http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=ll, what does ' s'  stand for?
       Stock Format
       Stock Variable
       Stock Symbol
       Stock Supplier

How can widgets for individual pages be managed within the page editor?
       By creating a new sidebar for every page
       By including sidebar.php in every page
       By creating a new sidebar for the page, followed by conditional display rules on individual widgets       
       By using a custom widget plugin

Which of the following is the correct way to specifically enable plugins for certain posts and pages that need them?
       By going in WordPress plugins section and selecting the specific plugins from there.
       Installing a plugin organizer plugin.
       By going in the General Settings area.
       It can't be done.

How can the social icons on a WordPress page be restored, if they stop working due to implementing infinite scrolling on the page?
       Add this code where the code of the social icons are present:
var el = document.body;
if (typeof FB !== "undefined") { FB.XFBML.parse(el); }
if (typeof twitter !== "undefined") { twitter.XFBML.parse(el); }
if (typeof googleplus !== "undefined") { googleplus.XFBML.parse(el); }
       Disable the social icons plugin and then enable it again.
       Add this code where the code of the social icons are present:
var el = document.body; if (typeof gapi !== "undefined") { gapi.plusone.go(el); }if (typeof FB !== "undefined") { FB.XFBML.parse(el); }if (typeof twttr !== "undefined") { twttr.widgets.load(); }
       Clear the browser cache.

Which of the following will call the WordPress media uploader form element?
   <form enctype="multipart/form-data" method="post" action="<?=bloginfo("siteurl");?>/wp-admin/media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form">
   <a onclick="return false;" title="Upload image" class="thickbox" id="add_image" href="/media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a>
   <a href="/media-upload.php?type=image&TB_iframe=true&width=640&height=105">Upload Image</a>
   <form enctype="multipart/form-data" method="post" action="<?=bloginfo("bloginfo");?>/wp-admin/media-upload.php?inline=&upload-page-form=" class="media-upload-form type-form validate" id="file-form">

Which of the following is the correct way to include the content of one page to another?
       wp_get_page($page) to retrieve the content
       By using get_page_by_path($path) function to retrieve page content
       wp_show_page($page)
       show_post($post)

Which of the following is the correct way to add a simple WordPress gallery in an external PHP file?
        add_filter('do_shortcode[gallery]', 11);
        echo do_shortcode('[gallery]');
        add_filter('widget_text', 'do_shortcode[gallery]');
        This can't be done.

Which of the following will remove anchors from all nodes/levels except the 4th level nodes of a WordPress category?
Parent node (1st level)
-->Child node (2nd level)
---->3rd level node
------>4th level node
Note: There may be more than one right answer.
       .cat-item a, .cat-item .cat-item a.hover {cursor: default;}
.cat-item .cat-item a.hover {cursor: pointer;}
.       cat-item a, .cat-item .cat-item a {cursor: default;}
.cat-item .cat-item a {cursor: pointer;}
.       cat-item a, .cat-item .cat-item .cat-item .cat-item a {cursor: default;}
.cat-item .cat-item .cat-item a {cursor: pointer;}
       .cat-item a, .cat-item .cat-item a:hover {cursor: pointer;}
.cat-item .cat-item a:hover {cursor: default;}

____________ can write their own posts but may not publish or delete them. Their HTML is limited to the set of allowed tags and they cannot upload media files.
       Contributo
       Autho
       Edito
       Subscribe
       Administrato

What type of tool is WordPress?
        It is a just CMS for creating websites
        Blogging tool and Partially - CMS
        Full Featured Blogging Tool and CMS
        Tool to create website with templates and admin section.

Which among the following is the best way to detect if the current page is the login page in WordPress?
        if ($pagenow != 'wp-login.php' && !is_admin())
        function is_login_page() {return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));}
        $uri = $_SERVER['REQUEST_URI'];echo $uri;
        function is_login_page() {return !strncmp($_SERVER['REQUEST_URI'], '/wp-login.php', strlen('/wp-login.php'));}

What is the output of the following code?
[sourcecode language="r"]
Your R code and comments
x <- rnorm(100)
y <- x + 10
[/sourcecode]
       Number of the comments in blog post limited to 100
       R removed from the blog post
       Removed comments from blog post
       embed R in blog post

WordPress Test часть 2

WordPress Тест Upwork 2019