Development before domain name chosen

You can use the Search and Replace plugin to fix the URLs once the new domain is chosen. Likewise, plugins such as BackupBuddy (paid) or Duplicator (free) — which are very useful for backup, possibly coupled with migration to another server or domain — also perform this search-and-replace operation.

Add category slug as class attribute in a link array

Ok guys found the solution myself (5 days later, oof) added below to help someone else in the future… foreach((get_the_category( $related_post->ID )) as $category) { $output .= “<a class=\”$category->slug\” href=\””.get_permalink( $related_post->ID ).”\” title=\”” . $category->cat_name . “\”>” . $category->cat_name . “</a>”; } Basically the old link above looked like this… $output .= “<a href=\””.get_permalink( $related_post->ID … Read more

Link to most recent child page

I found a solution! This is what I did: <?php query_posts(array(‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘posts_per_page’ => 1, ‘post_parent’ => $page_id, ‘post_type’ => ‘page’)); while (have_posts()) { the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/158490/<?php the_permalink(); ?>”>Link</a> <?php } ?> <?php wp_reset_query() ?> It makes a loop of sub-pages to a particular page and limits it to only … Read more

Menu Structure with Links failure to update

Did you actually create a specific menu and link it to one position you defined in functions.php? Once you do not link it to a position, WordPress grabs all pages and puts it in a menu. You should go like this: 1.) You put something this in the functions.php of your theme in order to … Read more