Tell us what you are trying to do?
Hello- I recently took our DEV site live and one Toolset item is not working as expected after migration. I used the below documentation to successfully add a select/dropdown of post titles, so that visitors can directly navigate to a selected post. It works and tests correctly on our dev site (hidden link) dropdown is just under the video.
However, after migrating to our live site (hidden link) the pages do load when selecting form the dropdown, however they are not using the WordPress URL, or the WP Engine Primary domain of athomeapartments.com. and the permalink structure looks to be using page id. Example: hidden link
I have done a database search and replace for athomeapartprd.wpengine.com to hidden link and I have changed the permalink structure from post to numerical and back to reset it but it did not correct this. I have also cleared the server cache.
I am hoping you can assist in getting these to work correctly.
Thanks Minesh, this looks like it will cover the domain discrepancy. However, I am most concerned with the permalink post type structure after the domain.
On our DEV site, it is correct at: /community/boatworks-commons/ [Toolset Post Type/Post Name]
Example: hidden link
On our live site after migration, it is: /?post_type=community&p=8326
Example: hidden link
This is only when using this function:
// Toolset support to add a select/dropdown of post titles, so that visitors can directly navigate to a selected post
// Add Shortcode
add_shortcode('show_custom_title_field', 'show_custom_title_field_fn');
function show_custom_title_field_fn($atts) {
$type = $atts['type'];
if (!empty($type)) {
$args = array(
'post_type' => 'community',
'posts_per_page' => -1,
'post_status' => 'publish',
'order' => 'ASC'
);
$posts_array = get_posts( $args );
Hi Minesh- I am marking this as resolved. I implemented some server level domain redirects from WP Engine's environment CNAME to the primary domain and that has also corrected the appended post type permalink.