Hello, I'm Vipin Kumar Singh a freelance web designer & developer from Ghaziabad(nearby Delhi), India with 7+ years industry experience. I specialize in creating websites in Open Sources. My expertise are PHP, MYSQL, Joomla, Drupal, Wordpress, WooCommerce, OpenCart, Codeigniter, CakePHP, jQuery. If you are looking for a freelance PHP, WordPress, WooCommerce developer in Delhi NCR, call me at +91-9718905095 or fill the contact form.
Vipin Kumar Singh, India (WordPress, WooCommerce, Codeigniter, PHP, Design & Development Expert)
To get all the post in returned WordPress query results, you have to put: ‘posts_per_page’ => -1 in query arguments. For example:
$all_posts = get_posts( array( 'post_type' => 'post', // e. g. custom_post_type 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => -1, ) );
If you ever need to get rid of annoying HTML validation errors, warnings like warning on ‘data’ attributes in Aptana Studio, go to Preferences -> Aptana Studio -> Validation -> HTML Tidy Validator and make sure that ‘Build’ and ‘Reconcile’ Columns have a cross (in red) over there if not so and there are green check marks, turn them into cross by clicking on check marks. After that Click apply and OK to save preferences and Select Yes on Build confirmation dialog box to apply new build settings for that.
If you ever need to remove slug completely from your WordPress’s URLs for Custom Post Type or Custom Taxonomy, set ‘slug’ to ‘/’ and ‘with_front’ to ‘FALSE’ for rewrite parameter while registering custom post type or custom taxonomy.
'rewrite' => array( 'slug' => '/', 'with_front' => FALSE ),
Don’t forget to visit Settings->Permalinks page to flush old url rewriting rules to update changes.
Sometimes Aptana Studio doesn’t give code hinting for WordPress Development, if you face this problem, try this:
1. go to File -> New -> Other -> or just click ctrl+N.
2. New dialog window will open, from there choose Project under General Category, click next.
3. On Project Screen type a name for your project e.g. ‘WordPress Development’ and uncheck ‘Use Default Location’.
4. Click browse button on the right for location and select your WordPress installation folder e.g. c:\xampp\htdocs\wordpress_development. Click Finish.
5. Now right click on your WordPress Development (your project created above) in Project Explorer and select Properties.
6. ‘Properties for WordPress Development’ window will pop up, from there click on ‘Project Natures’.
Check ‘PHP’ and ‘Web’ from the right panel, make sure PHP is highlighted as Primary.
Then click OK to close Properties Dialog window.
Now Aptana Studio will reconfigure your project accorinding to PHP as Project Nature and will ask you to close and reopen the project, click Yes to accept so.
Now you may see your porject as closed project on Project Manager, if so double click to open your newly created project and you are done.
Try creating a test plugin under wp-content/plugins directory and you will get code hinting for WordPress.
Address: 35/202, Shalimar Garden Extn.-1
Sahibabad, Ghaziabad (nearby Delhi) (UP) India
Pin - 201005
Telephone: . (India) +91-9718905095
Please note that, my min. charges are ₹ 5000/- (Indian Rupee).(even if you need slight changes in your existing code)