Does wordpress have something like content-type?

Yes there are lot of ways you can achieve this by using plugin or pragmatically This Plugin will create custom content types as well as custom fields for specific content type: https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/ However you can also do this via pragmatically: http://code.tutsplus.com/tutorials/a-guide-to-wordpress-custom-post-types-creation-display-and-meta-boxes–wp-27645 You can also check these functions from WordPress Codex which can be helpfull for … Read more

Can I / Should I use WordPress as a CMS for my Flash application

Absolutely. WordPress is implemented in PHP and anything Flash needed to interface with can be coded as a plugin, probably very easily. You can also implement any embedding of Flash as ShortCodes. Here are some (honestly not very good) links on the subject of PHP & Flash: http://www.kirupa.com/developer/actionscript/displayinphp.htm http://www.techmynd.com/get-data-in-flash-from-php/ http://www.dreamincode.net/forums/topic/9848-pass-complex-data-from-php-to-flash/ http://www.video-animation.com/dbase001.shtml http://www.smartwebby.com/Flash/external_data.asp http://www.devx.com/webdev/Article/36748 Of course … Read more

Multiple level category drop-down

function parent_child_cat_select() { ?> <script type=”text/javascript”> /* <![CDATA[ */ jQuery(document).ready(function() { jQuery(‘#parent_cat’).change(function(){ var parentCat=jQuery(‘#parent_cat’).val(); // call ajax jQuery.ajax({ url:”/wp-admin/admin-ajax.php”, type:’POST’, data:’action=category_select_action&parent_cat_ID=’ + parentCat, success:function(results) { jQuery(“#sub_cat_div”).html(results); } }); }); }); /* ]]> */ </script> <form action=”<?php bloginfo(‘url’); ?>/” method=”get”> <div id=”parent_cat_div”><?php wp_dropdown_categories(“show_option_none=Select parent category&orderby=name&depth=1&hierarchical=1&id=parent_cat”); ?></div> <div id=”sub_cat_div”><select name=”sub_cat_disabled” id=”sub_cat_disabled” disabled=”disabled”><option>Select parent category first!</option></select></div> <div id=”submit_div”><input … Read more

Can I use wordpress for a non-blog site?

Your friend is a diva. WordPress started as a blog platform, but now it has grown beyond that and is encroaching on becoming a mid-tier content management system out of the box. If you like it and it is easy for you, use it. It seems to match up with what you are trying to … Read more

Using WordPress as piecemeal in existing site?

Can I include content from Pages in WordPress and output that content on any page outside of the WP install directory? Is there something specific I would need to include? You can load WP engine in any PHP file, see integrating WP with your website in Codex. Do I have to use a Theme or … Read more

Stress testing WordPress

WordPress should behave the same, only dependent on your server resources. I hope you have a dedicated server because if not then you will experience severe outages and possibly cancellation of your hosting service. WordPress is merely databases and PHP, so amount of files will not affect its use. It is stable. You could have … Read more

How can I import users into WordPress?

A new file, import.php: <?php define(‘WP_INSTALLING’, true); // this is required. i forget why! include ‘/path/to/wordpress/wp-load.php’; include ABSPATH . WPINC . ‘/registration.php’; // wp_insert_user() $userdata = array(‘user_login’ => ‘jdoe’, ‘user_pass’ => ‘foobar’); $user_id = wp_insert_user($userdata); Check wp_insert_user() for other possible fields. Run update_usermeta() for any additional needed meta fields. (Including user level, though there may … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)