In order to display a widget, the user must _________________. Answers: 1. set the “show property” of the desired widget to “tru...
Home
/
Archives for June 2017
Tuesday, June 20, 2017
Which of the following functions are used when adding CSS and jQuery codes on a WordPress plugin?
Which of the following functions are used when adding CSS and jQuery codes on a WordPress plugin? Answers: 1. wp_register_style ...
Which of the following will echo the base URL of a WordPress site?
Which of the following will echo the base URL of a WordPress site? Answers: 1. <?php echo get_bloginfo(‘base_url’) ?> 2. ...
Which of the following is the correct code to get an array of every image uploaded to a particular post?
Which of the following is the correct code to get an array of every image uploaded to a particular post? Answers: 1. $images =...
Which of the following will correctly add custom mod rewrite rules to .htaccess from a WordPress plugin?
Which of the following will correctly add custom mod rewrite rules to .htaccess from a WordPress plugin? Answers: 1. $custom_mod...
Which of the following is the correct way to get WordPress Post ID from the Post title?
Which of the following is the correct way to get WordPress Post ID from the Post title? Answers: 1. $page = get_page_title( ‘Abo...
Are categories and tags available for pages? Note: Categories must have distinct slugs. Even if two categories have different parents and would therefore have different permalinks, you can’t assign them the same slug.
Are categories and tags available for pages? Note: Categories must have distinct slugs. Even if two categories have different parents an...
____________ can manage their own profiles, but can do virtually nothing else in the administration area.
____________ can manage their own profiles, but can do virtually nothing else in the administration area. Answers: 1. Contributo...
Which of the following code snippets will create plugins back-end page without showing it as menu item?
Which of the following code snippets will create plugins back-end page without showing it as menu item? Answers: 1. add_submenu_...
What is the function of add_filter in WordPress?
What is the function of add_filter in WordPress? Answers: 1. It registers a filter for a tag. 2. It removes line breaks ...
Which of the following is the correct way to filter the content for a few posts?
Which of the following is the correct way to filter the content for a few posts? Answers: 1. By using apply_filters(filter,postI...
Which of the following actions cannot be hooked in with add_submenu_page() function?
Which of the following actions cannot be hooked in with add_submenu_page() function? Answers: 1. admin_submenu 2. admin_...
Which of the functions below is required to create a new taxonomy?
Which of the functions below is required to create a new taxonomy? Answers: 1. add_taxonomy 2. register_taxonomy 3. ...
What is the first action you need to take for enabling the WordPress multisite (MS) feature?
What is the first action you need to take for enabling the WordPress multisite (MS) feature? Answers: 1. Enable the WordPress mu...
How can a WordPress template be integrated inside a codeigniter framework using WordPress functions like wp_header,wp_footer,wp_sidebar?
How can a WordPress template be integrated inside a codeigniter framework using WordPress functions like wp_header,wp_footer,wp_sidebar? ...
Which of the following is the correct way to redirect the default login and registration page URL to a custom login and registration page URL?
Which of the following is the correct way to redirect the default login and registration page URL to a custom login and registration page ...
How can a post ID be retrieved from the permalink?
How can a post ID be retrieved from the permalink? Answers: 1. Its not possible to retrieve the post ID from a permalink due to ...
How can a custom content filter be added?
How can a custom content filter be added? Answers: 1. By using add_action(‘the_content’,’my_custom_filter’) 2. By using ...
Which of the following commands can change the ownership of WordPress directory to www-data (for Apache)?
Which of the following commands can change the ownership of WordPress directory to www-data (for Apache)? Answers: 1. sudo chown...
Conditional tags can be used to _______________________.
Conditional tags can be used to _______________________. Answers: 1. get all comments from one post 2. get all posts fro...
Which of the following is the correct way to assign a category to a WordPress post?
Which of the following is the correct way to assign a category to a WordPress post? Answers: 1. wp_set_post_categories($postId,$...
What is the output of the following code? example 1 example 2 example 3 example 4
What is the output of the following code? <li>example 1 <li>example 2 <li>example 3 <li>example 4 $(docu...
What are the correct steps in wordpress plugin development:
What are the correct steps in wordpress plugin development: Answers: 1. Step 1 – Create your file and let it be known as a plugi...
Which of the following will show the most recent post (by date) from a custom taxonomy?
Which of the following will show the most recent post (by date) from a custom taxonomy? Answers: 1. select * from wp_posts where...
____________ can publish, edit, and delete posts and pages written by any user. They can upload some kinds of files, and they can write HTML without restrictions. They can manage links and categories, and they can moderate comments. Editors and administrators are also the only users allowed to read private posts and pages.
____________ can publish, edit, and delete posts and pages written by any user. They can upload some kinds of files, and they can write HT...
How can an < li >tag’s class and ID attributes be removed from menu items and page lists?
How can an < li >tag’s class and ID attributes be removed from menu items and page lists? Answers: 1. add_filter(‘nav_menu...