<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>PHPOnlineSupport - Recent questions and answers in Wordpress</title>
<link>http://phponlinesupport.com/qa/cms/wordpress</link>
<description>Powered by Portrave Solutions Pvt. Ltd.</description>
<item>
<title>Answered: Wordpress custom page without footer header and sidebar</title>
<link>http://phponlinesupport.com/315/wordpress-custom-page-without-footer-header-and-sidebar?show=316#a316</link>
<description>Step 1 - Create a WordPress page template le&lt;br /&gt;
In your local computer, create a text file, copy the following code and save it as &amp;quot;no-head-foot.php&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Step 2- Upload the le to your WordPress theme folder&lt;br /&gt;
FTP the created file no-head-foot.php to your WordPress theme folder, which is wp-&lt;br /&gt;
content -&amp;gt; themes -&amp;gt; yourthemename.&lt;br /&gt;
&lt;br /&gt;
Step 3 - Select the template in the WordPress page editor&lt;br /&gt;
In the WordPress page editor, Page Attributes tab, choose Clean Page from the&lt;br /&gt;
Template drop-down list.&lt;br /&gt;
&lt;br /&gt;
This should do the trick.&lt;br /&gt;
&lt;br /&gt;
Also refer &lt;a href=&quot;https://www.wonderplugin.com/wp-content/uploads/2017/06/How-to-create-a-WordPress-page-without-header-menu-sidebar-and-footer.pdf&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://www.wonderplugin.com/wp-content/uploads/2017/06/How-to-create-a-WordPress-page-without-header-menu-sidebar-and-footer.pdf&lt;/a&gt;</description>
<category>Themes</category>
<guid isPermaLink="true">http://phponlinesupport.com/315/wordpress-custom-page-without-footer-header-and-sidebar?show=316#a316</guid>
<pubDate>Thu, 22 Nov 2018 23:52:50 +0000</pubDate>
</item>
<item>
<title>Answered: How to hide admin bar (admin toolbar) from frontend?</title>
<link>http://phponlinesupport.com/313/how-to-hide-admin-bar-admin-toolbar-from-frontend?show=314#a314</link>
<description>Add this to your page, and it should do the trick.&lt;br /&gt;
&lt;br /&gt;
show_admin_bar( false );&lt;br /&gt;
&lt;br /&gt;
Refer here for more info &lt;a href=&quot;https://codex.wordpress.org/Function_Reference/show_admin_bar&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://codex.wordpress.org/Function_Reference/show_admin_bar&lt;/a&gt;</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/313/how-to-hide-admin-bar-admin-toolbar-from-frontend?show=314#a314</guid>
<pubDate>Thu, 22 Nov 2018 23:45:15 +0000</pubDate>
</item>
<item>
<title>Answered: wp get_current_user_id() returns 0</title>
<link>http://phponlinesupport.com/309/wp-getcurrentuserid-returns-0?show=310#a310</link>
<description>You need to init before that.&lt;br /&gt;
&lt;br /&gt;
add_action('init', 'my_user_id_Function');&lt;br /&gt;
&lt;br /&gt;
function my_user_id_Function()&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;return get_current_user_id();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
echo my_user_id_Function();</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/309/wp-getcurrentuserid-returns-0?show=310#a310</guid>
<pubDate>Thu, 08 Nov 2018 19:03:26 +0000</pubDate>
</item>
<item>
<title>Answered: How do I include $wpdb in wordpress plugin?</title>
<link>http://phponlinesupport.com/307/how-do-i-include-wpdb-in-wordpress-plugin?show=308#a308</link>
<description>global $wpdb, $table_prefix;&lt;br /&gt;
&lt;br /&gt;
if(!isset($wpdb))&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include_once(ABSPATH.'wp-config.php');&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;include_once(ABSPATH.'wp-includes/wp-db.php');&lt;br /&gt;
}</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/307/how-do-i-include-wpdb-in-wordpress-plugin?show=308#a308</guid>
<pubDate>Fri, 02 Nov 2018 18:57:30 +0000</pubDate>
</item>
<item>
<title>Answered: Fatal error: Call to undefined function wp_get_current_user() in</title>
<link>http://phponlinesupport.com/305/fatal-error-call-undefined-function-wpgetcurrentuser?show=306#a306</link>
<description>include_once(ABSPATH . &amp;quot;wp-includes/pluggable.php&amp;quot;);&lt;br /&gt;
Add this to the top of that page.&lt;br /&gt;
&lt;br /&gt;
Should be fine.</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/305/fatal-error-call-undefined-function-wpgetcurrentuser?show=306#a306</guid>
<pubDate>Fri, 02 Nov 2018 18:47:10 +0000</pubDate>
</item>
<item>
<title>How to Remove Menu Items in Admin Depending on User Role?</title>
<link>http://phponlinesupport.com/292/how-to-remove-menu-items-in-admin-depending-on-user-role</link>
<description>How we can remove menu items in dashboard depending on user role? Can you please explain?</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/292/how-to-remove-menu-items-in-admin-depending-on-user-role</guid>
<pubDate>Fri, 20 Jul 2018 00:47:26 +0000</pubDate>
</item>
<item>
<title>Answered: What is register_taxonomy in WP please?</title>
<link>http://phponlinesupport.com/290/what-is-registertaxonomy-in-wp-please?show=291#a291</link>
<description>In WordPress, you can create (or “register”) a new taxonomy by using the register_taxonomy() function.&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;* Add custom taxonomies&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;*/&lt;br /&gt;
&lt;br /&gt;
function add_custom_taxonomies() {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;// Add new &amp;quot;Locations&amp;quot; taxonomy to Posts&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;register_taxonomy('location', 'post', array(&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Hierarchical taxonomy (like categories)&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'hierarchical' =&amp;gt; true,&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// This array of options controls the labels displayed in the WordPress Admin UI&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'labels' =&amp;gt; array(&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'name' =&amp;gt; _x( 'Locations', 'taxonomy general name' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'singular_name' =&amp;gt; _x( 'Location', 'taxonomy singular name' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'search_items' =&amp;gt; &amp;nbsp;__( 'Search Locations' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'all_items' =&amp;gt; __( 'All Locations' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'parent_item' =&amp;gt; __( 'Parent Location' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'parent_item_colon' =&amp;gt; __( 'Parent Location:' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'edit_item' =&amp;gt; __( 'Edit Location' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'update_item' =&amp;gt; __( 'Update Location' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'add_new_item' =&amp;gt; __( 'Add New Location' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'new_item_name' =&amp;gt; __( 'New Location Name' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'menu_name' =&amp;gt; __( 'Locations' ),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;// Control the slugs used for this taxonomy&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'rewrite' =&amp;gt; array(&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'slug' =&amp;gt; 'locations', // This controls the base slug that will display before each term&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'with_front' =&amp;gt; false, // Don't display the category base before &amp;quot;/locations/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'hierarchical' =&amp;gt; true // This will allow URL's like &amp;quot;/locations/boston/cambridge/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;),&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;));&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
add_action( 'init', 'add_custom_taxonomies', 0 );&lt;br /&gt;
&lt;br /&gt;
After adding this to your theme’s functions.php file, you should see a new taxonomy under the “Posts” menu in the admin sidebar. It works just like categories but is separate and independent.&lt;br /&gt;
&lt;br /&gt;
After adding a few terms to your new taxonomy, you can begin to organise the content in your posts by location. A new “Locations” box will appear to the right of your posts in the WordPress admin area. Use this the way you would categories.</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/290/what-is-registertaxonomy-in-wp-please?show=291#a291</guid>
<pubDate>Thu, 19 Jul 2018 23:29:22 +0000</pubDate>
</item>
<item>
<title>Answered: Add Member to Wishlist programatically</title>
<link>http://phponlinesupport.com/217/add-member-to-wishlist-programatically?show=218#a218</link>
<description>


&lt;h1&gt;Function Reference: wlmapi_add_member&lt;/h1&gt;

&lt;p&gt;Adds a member to WordPress according to the specified arguments.&lt;/p&gt;

&lt;h3&gt;Parameters&lt;/h3&gt;

&lt;ul&gt;

&lt;li&gt;&lt;strong&gt;args&lt;/strong&gt;&amp;nbsp;(array) &amp;ndash; An array of accepted arguments specified below:&lt;/li&gt;&lt;/ul&gt;

&lt;table&gt;

&lt;tbody&gt;

&lt;tr&gt;

&lt;th&gt;&lt;strong&gt;Parameter&lt;/strong&gt;&lt;/th&gt;

&lt;th&gt;Description&lt;/th&gt;

&lt;th&gt;Required&lt;/th&gt;

&lt;th&gt;Default&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;user_login&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;User login (username)&lt;/td&gt;

&lt;td&gt;Required&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;user_email&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;User&amp;rsquo;s email address&lt;/td&gt;

&lt;td&gt;Required&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;user_pass&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Password. Auto-generated if not specified&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&amp;nbsp;auto-generated&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;company&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Company name&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;address1&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Address line #1&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;address2&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Address line #2&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;city&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;City&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;state&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;State&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;zip&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Zip code&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;country&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Country&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;wpm_login_limit&lt;/strong&gt;&amp;nbsp;(int)&lt;/td&gt;

&lt;td&gt;Number of concurrent logins to allow per IP&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;wpm_registration_ip&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;IP address during user registration&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;custom_{field}&lt;/strong&gt;&amp;nbsp;(string)&lt;/td&gt;

&lt;td&gt;Custom fields. Custom fields can be added by prepending a variable name with &amp;ldquo;custom_&amp;rdquo; (e.g. custom_phone)&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;Sequential&lt;/strong&gt;&amp;nbsp;(boolean)&lt;/td&gt;

&lt;td&gt;Enables/Disables sequential upgrade for user&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;Levels&lt;/strong&gt;&amp;nbsp;(array)&lt;/td&gt;

&lt;td&gt;Array of membership level IDs to add the user to&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;RemoveLevels&lt;/strong&gt;&amp;nbsp;(array)&lt;/td&gt;

&lt;td&gt;Array of membership level IDs to remove the user from&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt;

&lt;td&gt;&lt;strong&gt;SendMail&lt;/strong&gt;&amp;nbsp;(boolean)&lt;/td&gt;

&lt;td&gt;Send appropriate WishList Member emails or not. (Requires the &amp;ldquo;Levels&amp;rdquo; parameter to be set in order to work.)&lt;/td&gt;

&lt;td&gt;Optional&lt;/td&gt;

&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;

&lt;h3&gt;Return&lt;/h3&gt;

&lt;p&gt;Returns a multi-dimensional array containing operation status and an array containing full member data for the newly added user.&lt;/p&gt;

&lt;h3&gt;Example Code&lt;/h3&gt;

&lt;pre&gt;&amp;lt;?php
     $args = array(
          'user_login' =&amp;gt; 'johnistheman,
          'user_email' =&amp;gt; 'jmodaman@wlptest.com',
          'Levels' =&amp;gt; array(1340726008, 1340896239)
     );
     $member = wlmapi_add_member($args);
     print_r($member);
?&amp;gt;&lt;/pre&gt;

&lt;h3&gt;Example Output&lt;/h3&gt;

&lt;pre&gt;Array
(
    [success] =&amp;gt; 1
    [member] =&amp;gt; Array
        (
            [0] =&amp;gt; Array
                (
                    [ID] =&amp;gt; 13
                    [UserInfo] =&amp;gt; Array
                        (
                            [ID] =&amp;gt; 13
                            [caps] =&amp;gt; Array
                                (
                                    [subscriber] =&amp;gt; 1
                                )

                            [cap_key] =&amp;gt; wp_capabilities
                            [roles] =&amp;gt; Array
                                (
                                    [0] =&amp;gt; subscriber
                                )

                            [allcaps] =&amp;gt; Array
                                (
                                    [read] =&amp;gt; 1
                                    [level_0] =&amp;gt; 1
                                    [subscriber] =&amp;gt; 1
                                )

                            [filter] =&amp;gt; 
                            [user_login] =&amp;gt; johnistheman
                            [user_nicename] =&amp;gt; johnistheman
                            [user_email] =&amp;gt; jmodaman@wlptest.com
                            [user_url] =&amp;gt; 
                            [user_registered] =&amp;gt; 2012-12-10 15:54:56
                            [user_activation_key] =&amp;gt; 
                            [user_status] =&amp;gt; 0
                            [display_name] =&amp;gt; johnistheman
                            [wpm_useraddress] =&amp;gt; 0
                        )

                    [Sequential] =&amp;gt; 
                    [Levels] =&amp;gt; Array
                        (
                            [1340726008] =&amp;gt; stdClass Object
                                (
                                    [Level_ID] =&amp;gt; 1340726008
                                    [Name] =&amp;gt; Test Level 1
                                    [Cancelled] =&amp;gt; 
                                    [CancelDate] =&amp;gt; 
                                    [Pending] =&amp;gt; 
                                    [UnConfirmed] =&amp;gt; 
                                    [Expired] =&amp;gt; 
                                    [ExpiryDate] =&amp;gt; 
                                    [Active] =&amp;gt; 1
                                    [Status] =&amp;gt; Array
                                        (
                                            [0] =&amp;gt; Active
                                        )

                                    [Timestamp] =&amp;gt; 1355154896
                                    [TxnID] =&amp;gt; WL-13-1340726008
                                )

                            [1340896239] =&amp;gt; stdClass Object
                                (
                                    [Level_ID] =&amp;gt; 1340896239
                                    [Name] =&amp;gt; Test Level 2
                                    [Cancelled] =&amp;gt; 
                                    [CancelDate] =&amp;gt; 
                                    [Pending] =&amp;gt; 
                                    [UnConfirmed] =&amp;gt; 
                                    [Expired] =&amp;gt; 
                                    [ExpiryDate] =&amp;gt; 
                                    [Active] =&amp;gt; 1
                                    [Status] =&amp;gt; Array
                                        (
                                            [0] =&amp;gt; Active
                                        )

                                    [Timestamp] =&amp;gt; 1355154896
                                    [TxnID] =&amp;gt; WL-13-1340896239
                                )

                        )

                )

        )

    [supported_verbs] =&amp;gt; Array
        (
            [0] =&amp;gt; GET
            [1] =&amp;gt; PUT
            [2] =&amp;gt; DELETE
        )

)&lt;/pre&gt;

&lt;h3&gt;Notes&lt;/h3&gt;

&lt;p&gt;This functions returns WLMAPIMethods::add_member($args) in core/api-helper/class-api-methods.php&lt;/p&gt;
</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/217/add-member-to-wishlist-programatically?show=218#a218</guid>
<pubDate>Wed, 01 Mar 2017 09:16:39 +0000</pubDate>
</item>
<item>
<title>Answered: Wordpress theme with Magento</title>
<link>http://phponlinesupport.com/164/wordpress-theme-with-magento?show=165#a165</link>
<description>&lt;a href=&quot;https://wordpress.org/plugins/magento-wordpress-integration/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://wordpress.org/plugins/magento-wordpress-integration/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
This plugin allows you to “render” any Magento block inside of your WordPress theme&lt;br /&gt;
&lt;br /&gt;
Very very cool.&lt;br /&gt;
&lt;br /&gt;
Features includes:&lt;br /&gt;
&lt;br /&gt;
Select which Magento blocks get output on your WordPress theme.&lt;br /&gt;
Works with any WordPress theme or plugin.&lt;br /&gt;
Cool Add-on extensions:&lt;br /&gt;
-- MWI Magento-WordPress single sign on&lt;br /&gt;
-- MWI – Magento shortcodes for WordPress – allows you to insert products, layout blocks, and static blocks inside posts or pages&lt;br /&gt;
-- MWI – Magento category lists for WordPress – allows you to output a paginated category result inside posts or pages&lt;br /&gt;
&lt;br /&gt;
Cons:&lt;br /&gt;
&lt;br /&gt;
Some assembly required – this extension requires a little development to implement correctly.&lt;br /&gt;
&lt;br /&gt;
We tried out this plugin on a site we built recently, and you can see the results below:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://chase54.com/mens-golf-apparel/reed.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://chase54.com/mens-golf-apparel/reed.html&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://chase54.com/news/technology/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://chase54.com/news/technology/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You may not have noticed, but the first link is a Magento Page and the second is a WordPress Page. They look nearly identical, with the exception of the page-specific content.</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/164/wordpress-theme-with-magento?show=165#a165</guid>
<pubDate>Fri, 14 Oct 2016 07:41:37 +0000</pubDate>
</item>
<item>
<title>Answered: Migrate posts from an old wp to a new wp site</title>
<link>http://phponlinesupport.com/146/migrate-posts-from-an-old-wp-to-a-new-wp-site?show=154#a154</link>
<description>


&lt;p&gt;Use either one of the links below for your task. Specially if you want to migrate your attachments/media etc...&lt;/p&gt;

&lt;p&gt;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://www.siteground.com/tutorials/wordpress/transfer-wordpress/&quot;&gt;https://www.siteground.com/tutorials/wordpress/transfer-wordpress/&lt;/a&gt;
&lt;br&gt;&lt;a target=&quot;_blank&quot; rel=&quot;nofollow&quot; href=&quot;https://premium.wpmudev.org/blog/moving-wordpress-site/&quot;&gt;https://premium.wpmudev.org/blog/moving-wordpress-site/&lt;/a&gt;&lt;/p&gt;
</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/146/migrate-posts-from-an-old-wp-to-a-new-wp-site?show=154#a154</guid>
<pubDate>Tue, 06 Sep 2016 03:32:02 +0000</pubDate>
</item>
<item>
<title>Answered: Show total/aggregate ratings and reviews on the posts/pages</title>
<link>http://phponlinesupport.com/151/show-total-aggregate-ratings-and-reviews-on-the-posts-pages?show=152#a152</link>
<description>Here is the code that can work on any post/page&lt;br /&gt;
&lt;br /&gt;
global $wpdb;&lt;br /&gt;
$pId = $post-&amp;gt;ID; //if using in another page, use the ID of the post/page you want to show ratings for.&lt;br /&gt;
$row = $wpdb-&amp;gt;get_results(&amp;quot;SELECT COUNT(*) AS `total`,AVG(review_rating) AS `aggregate_rating`,MAX(review_rating) AS `max_rating` FROM wp_wpcreviews WHERE `page_id`= $pId AND `status`=1&amp;quot;);&lt;br /&gt;
$max_rating = $row[0]-&amp;gt;max_rating;&lt;br /&gt;
$aggregate_rating = $row[0]-&amp;gt;aggregate_rating;&lt;br /&gt;
$total_reviews = $row[0]-&amp;gt;total;&lt;br /&gt;
$totl = $aggregate_rating * 20;&lt;br /&gt;
$wpdb-&amp;gt;flush();&lt;br /&gt;
&lt;br /&gt;
And to show aggregate ratings in star form, simply add this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;sp_rating&amp;quot; id=&amp;quot;wpcr_respond_1&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;base&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;width: &amp;lt;?php echo $totl;?&amp;gt;%&amp;quot; class=&amp;quot;average&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;?php echo ' ' . $total_reviews;?&amp;gt; Reviews&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For displaying it as,&lt;br /&gt;
Overall: 4.67 stars for 60 reviews.&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;Overall: &amp;quot; . $aggregate_rating . &amp;quot; stars for &amp;quot; . $total_reviews . &amp;quot; reviews.&amp;quot;;</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/151/show-total-aggregate-ratings-and-reviews-on-the-posts-pages?show=152#a152</guid>
<pubDate>Mon, 05 Sep 2016 02:36:40 +0000</pubDate>
</item>
<item>
<title>How can I put a widget like a slider in Visual Composer?</title>
<link>http://phponlinesupport.com/143/how-can-i-put-a-widget-like-a-slider-in-visual-composer</link>
<description>Hi folks!&lt;br /&gt;
&lt;br /&gt;
I hope you're having a good time.&lt;br /&gt;
&lt;br /&gt;
I'm trying to place a slider inside visual composer. Tried and tired already.&lt;br /&gt;
&lt;br /&gt;
I assume there must be a way to work around that issue, like - I don't know - Could I put the shortcodes inside?&lt;br /&gt;
&lt;br /&gt;
Thx in advance for any help!&lt;br /&gt;
Greetings from Switzerland&lt;br /&gt;
Philip</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/143/how-can-i-put-a-widget-like-a-slider-in-visual-composer</guid>
<pubDate>Fri, 26 Aug 2016 10:28:13 +0000</pubDate>
</item>
<item>
<title>Answered: WP backend slowness</title>
<link>http://phponlinesupport.com/140/wp-backend-slowness?show=141#a141</link>
<description>Since the upgrade process is purely done by WP core which no other coding or anything is involved, this is most probably a server problem, if not the internet issue. Please raise a ticket with your hosting, till let you know regarding this. Expect some template response rubbish from them, but it 99% points to a server slowness.</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/140/wp-backend-slowness?show=141#a141</guid>
<pubDate>Thu, 25 Aug 2016 03:49:09 +0000</pubDate>
</item>
<item>
<title>Answered: Showing notification on WordPress admin dashboard home</title>
<link>http://phponlinesupport.com/16/showing-notification-on-wordpress-admin-dashboard-home?show=110#a110</link>
<description>This is sooo Cool !&lt;br /&gt;
&lt;br /&gt;
I had an attempted failed search for this feature build long before.&lt;br /&gt;
&lt;br /&gt;
This is not an answer, but I coudnt resist to leave my comment for this question. Moderators please excuse me or please move this to appropriate section ;)</description>
<category>Plugins</category>
<guid isPermaLink="true">http://phponlinesupport.com/16/showing-notification-on-wordpress-admin-dashboard-home?show=110#a110</guid>
<pubDate>Thu, 14 Jul 2016 04:13:46 +0000</pubDate>
</item>
<item>
<title>Answered: Remove prefix in the URL of category page - Wordpress</title>
<link>http://phponlinesupport.com/95/remove-prefix-in-the-url-of-category-page-wordpress?show=96#a96</link>
<description>You can use this plugin for this purpose.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://wordpress.org/plugins/fv-top-level-cats/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://wordpress.org/plugins/fv-top-level-cats/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Please use this at your own risk after testing.</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/95/remove-prefix-in-the-url-of-category-page-wordpress?show=96#a96</guid>
<pubDate>Fri, 08 Jul 2016 07:24:27 +0000</pubDate>
</item>
<item>
<title>Answered: User accounts sync between Magento and Wordpress</title>
<link>http://phponlinesupport.com/48/user-accounts-sync-between-magento-and-wordpress?show=69#a69</link>
<description>


&lt;p&gt;I have not had tried an actual sync solution between WP and Magento, but there are some plugins and solutions by which will allow you to run a WP site over magento sessions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;http://mysillypointofview.richardferaro.com/2010/05/11/mage-enabler/&quot;&gt;Mage Enabler&lt;/a&gt;.&lt;/strong&gt; This is a WP plugin that gives raw access to the Mage object - you can use it like single login and even access Magento methods within WordPress (pull templates from Magento, display categories, products and checkout from your blog etc etc and much more).&lt;/p&gt;

&lt;p&gt;There is also a Fishpig plugin for this purpose. See &lt;a href=&quot;http://fishpig.co.uk/magento/wordpress-integration/customer-synchronisation/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://fishpig.co.uk/magento/wordpress-integration/customer-synchronisation/&lt;/a&gt;
&lt;br&gt;While I have not used this plugin on any project yet.&lt;/p&gt;

&lt;p&gt;Other solutions to consider below...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.anowave.com/marketplace/magento-extensions/magento-wordpress-single-login/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.anowave.com/marketplace/magento-extensions/magento-wordpress-single-login/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://premium.wpmudev.org/blog/single-sign-on-now-available-for-wordpress-and-magento/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://premium.wpmudev.org/blog/single-sign-on-now-available-for-wordpress-and-magento/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or you can ever build a bespoke solution&lt;/p&gt;

&lt;p&gt;Just check, if a customer session is returned through mage, and check for WP sessions also. If WP session is not set then the user is not logged in. Create the WP user with a common password and inject the login. You can start this from here.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://phponlinesupport.com/68/code-check-customer-logged-magento&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://phponlinesupport.com/68/code-check-customer-logged-magento&lt;/a&gt;&lt;/p&gt;
</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/48/user-accounts-sync-between-magento-and-wordpress?show=69#a69</guid>
<pubDate>Wed, 15 Jun 2016 08:05:13 +0000</pubDate>
</item>
<item>
<title>Answered: What is apply_filters(...) in WP please?</title>
<link>http://phponlinesupport.com/43/what-is-applyfilters-in-wp-please?show=62#a62</link>
<description>The apply_filters() function can be used to create a new filter hook by simply calling this function with the name of the new hook specified using the $tag parameter. The callback functions attached to filter hook $tag are invoked by calling this function.&lt;br /&gt;
&lt;br /&gt;
$value = apply_filters( $tag, $value, $var_1, $var_2, $var_3, ... );&lt;br /&gt;
&lt;br /&gt;
You can use apply_filters to filter a given $value - with relation to the value itself and optionally provided variables inside the range $var_1 to $var_n.&lt;br /&gt;
&lt;br /&gt;
Please refer here for more official info on this.&lt;br /&gt;
&lt;a href=&quot;https://developer.wordpress.org/reference/functions/apply_filters/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://developer.wordpress.org/reference/functions/apply_filters/&lt;/a&gt;</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/43/what-is-applyfilters-in-wp-please?show=62#a62</guid>
<pubDate>Mon, 13 Jun 2016 08:58:35 +0000</pubDate>
</item>
<item>
<title>Answered: Suggest a good events managing theme</title>
<link>http://phponlinesupport.com/44/suggest-a-good-events-managing-theme?show=46#a46</link>
<description>Here is your last stop. Check the showtheme showcase.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.showthemes.com/?utm_source=Footer-Ad-EMB&amp;amp;utm_medium=Footer-Ad-EMB&amp;amp;utm_campaign=Footer-Ad-EMB#theme-list&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.showthemes.com/?utm_source=Footer-Ad-EMB&amp;amp;utm_medium=Footer-Ad-EMB&amp;amp;utm_campaign=Footer-Ad-EMB#theme-list&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You wont need to look further anywhere.&lt;br /&gt;
&lt;br /&gt;
As you have not mentioned any of the basic requirements, you may select the appropriate theme from that list.</description>
<category>Themes</category>
<guid isPermaLink="true">http://phponlinesupport.com/44/suggest-a-good-events-managing-theme?show=46#a46</guid>
<pubDate>Fri, 03 Jun 2016 09:33:00 +0000</pubDate>
</item>
<item>
<title>Answered: Move all existing external images to WP Media Library</title>
<link>http://phponlinesupport.com/6/move-all-existing-external-images-to-wp-media-library?show=33#a33</link>
<description>Assuming that you need to copy images to your WP media library from other folders on your server.&lt;br /&gt;
&lt;br /&gt;
You can do this with Add From Server plugin.&lt;br /&gt;
&lt;a href=&quot;https://wordpress.org/plugins/add-from-server/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;https://wordpress.org/plugins/add-from-server/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
After installation, go to the Plugin interface and click on Add From Server &amp;gt; Import Files &lt;br /&gt;
&lt;br /&gt;
You can also do this with admin sidebar going to Media &amp;gt; Add From Server.&lt;br /&gt;
&lt;br /&gt;
Using this plugin you can select your folder where your images are located on the server and import the files you want into your media library.&lt;br /&gt;
&lt;br /&gt;
Select all, or as per your preferences and import to library.</description>
<category>Wordpress</category>
<guid isPermaLink="true">http://phponlinesupport.com/6/move-all-existing-external-images-to-wp-media-library?show=33#a33</guid>
<pubDate>Thu, 26 May 2016 18:01:34 +0000</pubDate>
</item>
</channel>
</rss>