Query page: preserve page formating

dose anyone know how to get this query (or a different query) to preserve the page formatting? Thanks <?php $my_postid = 663;//This is page id or post id $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]>’, $content); echo $content; ?> EDIT I did not find a way to alter … Read more

Create a plugin to create a new page in wordpress for each time a record is added into the database

I am new to wordpress and would like to get a way forward for a particular problem. I have a database table A with various columns. For each record in table A a wordpress page needs to be created in the wordpress database. The page should be custom designed. The whole process has to be … Read more

how can i get the page_ID in nav li [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 6 years ago. Improve this question I need a menu with the page IDs of the linked Pages in the li Tags. It should look like that: … Read more

change page name on page list

I’m looking for the way to changes terms on wordpress backoffice. exemple : pages name on list page. I don’t found the .PO or .MO on wp-content/language/ to make changes. Do you have an idea? Answer You can change built in post type labels with the post_type_labels_{$post_type} filter: function wpd_change_page_labels( $labels ) { $labels->menu_name = … Read more

How do I remove blog entries from home page Twenty Eleven child theme?

I have been wrestling with this for some time. I’ve read the documentation about creating a separate home page and posts page, and so on, and I have managed to create a landing page, and a blog. But I’d like to have the landing/home page be a dedicated music page with a player, and I … Read more