Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ZillaConsulting

    (@zillaconsulting)

    It really does help to type thing out… I figured out what the problem was.

    Locally I had my permalink settings set to ‘Default’ while on my server I have them set to ‘Post Name’.

    This wouldn’t normally pose a problem, but to resolve the issue, all I had to do was re-apply my Permalink settings and it was fixed.

    *High Five* to me.

    Thread Starter ZillaConsulting

    (@zillaconsulting)

    Let me rather put some clearer details to make it easier to understand the problem.

    Here is the code I used to create the custom post type in functions.php of my child theme:

    <?php
    
    	add_action( 'init', 'create_post_type' );
    	function create_post_type() {
    		register_post_type( 'artist_profile',
    			array(
    				'labels' => array(
    					'name' => __( 'Artists' ),
    					'singular_name' => __( 'Artist' )
    				),
    			'public' => true,
    			'publicly_queryable' => true,
    			'has_archive' => true,
    			'rewrite' => array('slug' => 'artists'),
    			'supports' => array('title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', 'page-attributes'),
    			'can_export' => true,
    			)
    		);
    
    		register_taxonomy('artist_stage', 'artist_profile', array('hierarchical' => true, 'label' => 'Stage', 'query_var' => true, 'rewrite' => true));
    		register_taxonomy('artist_songs', 'artist_profile', array('hierarchical' => true, 'label' => 'Songs', 'query_var' => true, 'rewrite' => true));
    		register_taxonomy('artist_tags', 'artist_profile', array('hierarchical' => true, 'label' => 'Tags', 'query_var' => true, 'rewrite' => true));
    
    	}
    
    ?>

    So for the purposes of the example, I have a page template I am using to display the custom post type in a portfolio type layout with a filer for each ‘Stage’ rather than ‘Category’, which you will see in the taxonomy ‘artist_stage’.

    The result I am getting locally when viewing the page and hovering on the artist is as follows:

    https://localhost/avada/?artist_profile=test-artist

    The result I am getting on the server when viewing the same page and hovering on the artist is as follows:

    https://www.example.co.za/artists/test-artist/

    Thread Starter ZillaConsulting

    (@zillaconsulting)

    Thanks. I have tried contact the developer with no luck. Will keep trying.

    Thread Starter ZillaConsulting

    (@zillaconsulting)

    seems to be fine in Firefox.

    When you say it is fine, what resolution are you viewing the page in and have you tested it on all pages on the site?

Viewing 4 replies - 1 through 4 (of 4 total)