All Pages visible on the Frontpage

In Twenty Seventeen you can only add 4 page in front-page section. see image below See Appearance=> Customize => Theme Options Update You can add extra section with filter twentyseventeen_front_page_sections add this code in functions.php function tws_custom_front_sections( $num_sections ) { return 5; //Change this number to change the number of the sections. } add_filter( ‘twentyseventeen_front_page_sections’, … Read more

Attachment pages stealing page slugs

I’ve found a workaround if someone has the same problem: In the database, you can search for the attachment page that’s causing problem, you’ll find it in wp_posts by searching for its post_name (which is the slug you want). Then just rename that post_name (in about-img for example). It isn’t a fix but it will … Read more

Special Character Appearing in my WordPress Pages Content

My guess is that you pasted something from a Windows environment and that’s the CR (carriage return, I think) character. I’d go into the editor and just remove those line breaks. That should fix the problem. Also, you might look into standardizing the content type meta tag. You’ve got <meta charset=”UTF-8″ /> I could be … Read more

check first and last child pages wordpress

You can use get_pages() function to do that: global $post; $current_page_id = $post->ID; //Sort by creation time: $args = array( ‘child_of’ => $current_page_id, ‘sort_order’ => ‘ASC’, ‘sort_column’ => ‘post_date’, ‘hierarchical’ => 1, ‘number’ => 1, ); $first_child = get_pages($args); //moddify args to get the last child: $args[‘sort_order’] = ‘DESC’; $last_child = get_pages($args); //when loopting thrugh … Read more

Admin taking a very long time to load

I would do most of my troubleshooting in the Debug Bar plugin along with the Debug Bar extender plugin. This plugin gives you detailed access to everything that is going on behind the scenes. It can also detail memory usage and execution time for each function and database query along with where it was called … Read more

How can I use “getarchives_where” to get monthly archives for static pages?

wp_get_archives already have post_type=”post” by default and to replace it try this: add_filter(‘getarchives_where’,’my_archives_filter’); function my_archives_filter($where_clause) { str_replace( “post_type=”post”” , “post_type=”page”” , $where ); } in sidebar: add_filter(‘getarchives_where’,’my_archives_filter’); wp_get_archives(‘type=yearly’); remove_filter (‘getarchives_where’,’my_archives_filter’);

Excerpt Now Showing on the Post Page

I am guessing a bit but based on your description, you probably only have an index.php file running both of those pages. If you create a single.php file in the theme that (probably) matches what you had in the index.php before you edited it, you should have what you want. WordPress will look in the … Read more

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