Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts
Category Archives: Wordpress
Wordpress
WordPress Get Menu Items
<?php $topMenuItems = wp_get_nav_menu_items(‘header-top-menu’ ); ?>
<ul>
<?php foreach($topMenuItems as $topMenu) { ?>
<li><a href=”<?php echo $topMenu->url; ?>”><?php echo $topMenu->title; ?></a></li>
<?php } ?>
</ul>
WordPress MySQL Query Delete All Trash Comments
delete from wp_comments where comment_approved=’trash’;
WordPress Plugin Site Log – PHPCodezSiteLog
Would you like to see who is accessing what site pages?when?How?. This Plugin logs site activity, and shows the details of the user like IP,Browser,pages accessed, date time etc
== Description ==
PHPCodez Site Log let the site amin to see site activities (Both in the admin and client side) . It shows the user details who have accessed the pages .
Features
1) It keeps the record of users who visited the site
2) It stores the details like date,time,ip,browser etc
3) it keeps the log of pages accessed whenever its loaded
4) We can filter the log details
5) We can generate the CSV based on the log
6) It has got option to clear the log if required .
7) It’s very useful if the site has many editors /admin/Authors (eg online newspapers)
See our <a href=”http://profiles.wordpress.org/tppramod”>other Plugins here</a>
Click here to download the plugin
WordPress Plugin Contact Us From – PHPCodezContactFrom
PHPCodez Contact From allows you to add a feedback form easilly and simply to a post or a page.
== Description ==
PHPCodez Contact From allows you to add a feedback form easilly and simply to a post or a page.
Advatages
1) We can manage the field labels
2) We can manage error messages
3) We can block/enable fields
4) We can manage the email address
5) We can manage success message
== Installation ==
1. Upload the plugin folder to your /wp-content/plugins/ folder.
2. Go to the **Plugins** page and activate the plugin.
3. Add a new page/post with shortcode [phpcodez-contact-form]
Click here to download the plugin
get admin email wordpress
<?php echo get_settings(‘admin_email’) ?>
WordPress Plugin Comments – PHPCodezComments
It can be used to list comments and the output can be managed from admin side
== Description ==
PHPCodez Comments lists comments . The output can be managed from the back end
Advatages
======
1) We can restrict the number comments
2) We can enable/disable author name
3) We can enable/disable author image
4) We can enable/disable post name
5) We can enable/disable Comments
6) We can restrict the number character in author name
7) We can restrict the number character in post name
8) We can restrict the number character in comments
9) We can show/ block unapproved comments
10) We can sort the comment in ascending or descending order
11) We can list the comments randomly
12) We can exclude the comments by giving its id
13) We can set author image dimension
== Installation ==
1. Upload the plugin folder to your /wp-content/plugins/ folder.
2. Go to the **Plugins** page and activate the plugin.
3. Go to appearance->widget area and drag the widget “PHPCodez Comments” to the widget area to have this on the sidebar .
Click here to download the plugin
Author image from author wordpress
<?php echo get_avatar($authorr_id,$dimession); ?>
WordPress Plugin Tweets – PHPCodezTweets
It can be used to list latest tweets and the username and output can be managed from admin side
== Description ==
PHPCodez Tweets list latest tweets and the username and output can be managed from admin side
Advatages
======
1) We can restrict the number tweets
2) We can set the twitter user name from admin panel
3) We can show/block images
== Installation ==
1. Upload the plugin folder to your /wp-content/plugins/ folder.
2. Go to the **Plugins** page and activate the plugin.
3. Go to appearance->widget area and drag the widget “PHPCodez Tweets” to the widget area to have this on the sidebar .
Click here to download the plugin
WordPress Plugin Pages – PHPCodezPages
It can be used to list pages and the output can be managed from admin side
== Description ==
PHPCodez Pages lists pages . The output can be managed from the back end
Advatages
======
1) We can restrict the number pages
1) We can list pages randomly
2) We can sort pages by its name,comment count or id
3) We can show comment count with pages
5) We can list parent pages only (List only 1st level subpages)
6) We can exclude pages
== Installation ==
1. Upload the plugin folder to your /wp-content/plugins/ folder.
2. Go to the **Plugins** page and activate the plugin.
3. Go to appearance->widget area and drag the widget “PHPCodez Pages” to the widget area to have this on the sidebar .
Click here to download plugin