Can two custom templates be used to create a single page?

I’ve never thought to do this with WordPress until now, but I was wondering is it possible for two templates to be chosen to create a post or page in WordPress? When you are on the ‘Edit Page’ there is the ‘Page Attributes>Template’ section. When a custom template is chosen that will generate the main layout of the page which includes the region for an iframe. The iframe comes into play when the custom-field below the content editor is filled out, which would automatically call the second custom template when…

How do I fix "Sorry, this file type is not permitted for security reasons"

When I try to upload any PNG file, I get the following error message: I have no plugin or anything installed, that could cause this. I even added the following line in order to fix this: define(‘ALLOW_UNFILTERED_UPLOADS’, true); Since it is a local installation, security is not an issue. But still this didn’t fix my problem. Any ideas what could cause this problem? Source:

The function is deprecated; use mysql_real_escape_string() instead

I don`t know coding. I recently my website stop to work properly. I get this error on the top of on every page loaded. Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/nortoniq/public_html/ on line 60 Anybody can help me with this error? much appreciate Source:

How to remove custom style from source?

i use latest wordpressversion and in source file of site i found that code: <style type= »text/css »>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style> I did not find it in theme files. how can i remove it from source? Source:

woocommerce product search based only title

hi i need your help regarding for woo-commerce product title based search we have list of product my searching keyword available in product title need to show list product. if product title don’t have my search keyword but available in product description section this don’t need to display this product. Source:

Display tags cloud from a specific category ID with a shortcode

I’m trying to display some tags cloud in different locations of my WordPress. I’m using a shortcode but I’m looking for a way to display only the tags from a specific category ID by adding this ID right in the shortcode like: [tagscloud cat_id=’2′] I made this but I’m stuck because I don’t know how to filter/apply (not sure about the right term) the cat_id. function wp_tags_cloud_shortcode($atts) { extract(shortcode_atts(array( ‘cat_id’ =>  » ), $atts)); $content = wp_tag_cloud( array( ‘echo’ => false, ‘smallest’ => 10, ‘largest’ => 10, ‘unit’ => ‘px’,…

adding existing menu page on new customer user role

I have created new user role ‘Host’ . now I am trying to show admin menu item ‘ user’ in it . i have googled some code and tried this $result = add_role( ‘Host’, __(Host), array( ‘read’ => true // Use false to explicitly deny ) ); function Host_menu_links(){ $user = wp_get_current_user(); if( $user_role == ‘Host’ ) { remove_menu_page(‘tools.php’); remove_menu_page(‘themes.php’); remove_menu_page(‘options-general.php’); remove_menu_page(‘plugins.php’); remove_menu_page(‘edit-comments.php’); remove_menu_page(‘page.php’); remove_menu_page(‘upload.php’); remove_menu_page( ‘edit.php?post_type=page’ ); remove_menu_page( ‘edit.php?post_type=videos’ ); remove_menu_page( ‘edit.php’ ); } } add_action(‘admin_menu’, ‘Host_menu_links’); I am trying to give only read permission to it .but it…

How to wrap the list with custom class using wp_nav_menu?

I want to display 4 column footer menu. but when I add new menu the wp_nav_menu create a < li > and add every menu items to it. now, how can I wrap every li element with a custom div tag with a class? I need this output : In the above image, you can see every menu is wrapped inside a div. I tried with wp_nav_menu() it does not help. As I’m new to WordPress theme development I don’t know more option. Is there any way I can say…

Web Design Weekly #301

Headlines React Performance Fixes on Airbnb Listing Pages Joe Lencioni explains the techniques he used to profile Airbnb’s listing pages, the tools he used to optimize it and see the scale of the impact it had. ( How Stripe Designs Beautiful Websites ( Claim Your .design Domain Name…Before Someone Else Does ​Grab a free .design domain name for your website or portfolio! Unlike .com or .net, .design is a domain that reflects what you do and makes your branding look better. Your .design domain comes with a free year of…