-
24 Aug
Add Edit and Delete Posts from Front-End in WordPress
Create these three template files in your directory 1. template-view-posts.php 2. template-insert-posts.php 3. template-edit-posts.php
- Category :
- Wordpress
-
14 Aug
Display wordpress editor in any plugin/custom page on admin side
Many times it is required to add an extra editor on admin side in wordpress. So, for that different plugins are also available like : “Types – Custom Fields and Custom Post Types Management” Plugin or “tinyMCE” Plugin. But, displaying and editor is also possible using a simple code.
Add below code where want to display wordpress editor- Category :
- Wordpress
-
13 Aug
Display comment count of logged in user
if we want to display total count for comment in wordpress for logged in user follow the below code. you need to edit your theme’s function.php file.
- Category :
- Wordpress
-
07 Aug
Create a PDF viewer short code in wordpress
If you’re using PDF files on your WordPress blog, it could be very cool to give your users the chance to open them using Google Docs. The following recipe will show you how you can do that.
- Category :
- Wordpress
-
05 Aug
How to redirect users to a random post in wordpess
What about giving a new life to your old posts by creating a page template that will redirect readers to a random post? Today, we are going to show you how to easily create this kind of page.
- Category :
- Wordpress
-
30 Jul
How to add admin menu in wordpress
Many times it is needed to create menu on admin side in wordpress. Mainly needed when we create any plugin, or created any admin page. Create admin menu using provided functions by wordpress :
- Category :
- Wordpress
-
29 Jul
Display Post attachment count on Admin side
Suppose you have used many attachments in your posts, and want to know the count of each posts attachments on Admin side posts list, than, use below simple code in your theme’s function.php file.
- Category :
- Wordpress
-
24 Jul
Useful functions that are used to implement wordpress theme
get_bloginfo(‘home’) It retrieves the home URL for the current site. bloginfo(‘description’) Displays the “Tagline” set in Setting >General . This data is retrieved from the “blogdescription” record in the wp_options table. bloginfo(‘name’) Displays the “Site Title” set in Setting >General. This data is retrieved from the “blogname” record in the wp_options table.
bloginfo(‘template_directory’)
Displays URL of the active theme’s directory. -
22 Jul
Display Latest Tweets with API v1.1 without using Plugin
We always think to display the tweets in our website and we are dependent of plugin for this ,we can do this without using the plugin here we have providing the full code how we can display tweets using the code.
- Category :
- Wordpress
-
16 Jul
Change admin url in wordpress
For security reasons, we need to change Admin Login URL , from “yourdomain.com/wp-admin” to “yourdomain.com/xyz” For completing this task, we can either use plugin like “HC Custom WP-Admin URL” or “Lockdown WP Admin”. But the same task we can do by simple coding in 1-2 files.
- Category :
- Wordpress