WordPress as a CMS – best way to decouple publishing/front-end

To disable WP frontend and WP REST API output, create an empty theme, i.e. ‘My Empty Theme’ in /wp-content/themes/myemptytheme/, that contains 3 files: style.css index.php functions.php style.css may contain the theme name only: /* Theme Name: My Empty Theme */ index.php – leave it empty functions.php – include the following code to disable REST API … Read more

Hide comments column in WordPress backend

Try this: add_filter(“manage_edit-page_columns”, “my_page_edit_columns”); function my_page_edit_columns($columns){ unset($columns[‘comments’]); return $columns; } If you need it for posts instead of pages, use manage_edit-post_columns instead. The same goes for any post type, really, as manage_edit-{post_type}_columns.

Why are wordpress posts not hierarchical?

As you’re probably already aware, WordPress is designed with two main content types: Pages and Posts (see also http://en.support.wordpress.com/post-vs-page/) The very design of Posts is to not be hierarchical. And the nature of Pages is to be hierarchical. Posts are to be part of a blog. Blogs are almost always ad-hoc in organization. Thus there … Read more

Remove permalink settings in post for users

The default post types are post, page, attachment, revision, and nav_menu_item. Replace ‘post_type’ with ‘post’: add_action(‘admin_head’, ‘wpds_custom_admin_post_css’); function wpds_custom_admin_post_css() { global $post_type; if ($post_type == ‘post’) { echo “<style>#edit-slug-box {display:none;}</style>”; } } If you want to remove it for multiple post types (i.e. post, page, or any custom post types you might have), change line … Read more

WordPress vs. Custom PHP [closed]

1) That depends on who is building the custom PHP site and how much effort they put into it. If you build a shoddy custom PHP site, then it can easily be hacked. On the other hand, if you don’t take certain precautions then your WP site can be hacked too. I just finished up … Read more

Using the “Latest posts” feature on a different site

You could insert the plugin’s shortcode into another page, by following the directions here. http://wordpress.org/extend/plugins/nurelm-get-posts/ Alternatively if you don’t necessarily need the plugin and simply want to create a page that displays posts, follow the example given here on the codex. http://codex.wordpress.org/Pages#A_Page_of_Posts Scribu, +1 .. as that’s essentially what you were suggesting to.

New to CMS – WP functionality. overkill or just right?

For the most part, I believe WordPress will do just fine. You will have to brush up on your knowledge of PHP to get the hang of creating your own custom templates, but there are plenty of sites (This One Included) that will help guide you. There are also a plethora of free & premium … Read more

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