We have a static Hugo website and we want to migrate it to WordPress
You can use the postmark extension for wp-cli to create posts from markdown files with quite a bit of control over how you deal with your frontmatter.
You can use the postmark extension for wp-cli to create posts from markdown files with quite a bit of control over how you deal with your frontmatter.
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
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.
This cab be done very easy by custom code or using Meta Box Script For WordPress which makes my life a lot easier when it comes to creating custom meta boxes.
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
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
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
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.
Role Scoper is a pretty good plugin to restrict category post access to users. It allows you to assign restrictions and roles to specific pages, posts or categories, which is what you said you need
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