Viewing 27 posts - 1 through 27 (of 27 total)
  • Author
    Posts
  • #835617

    Hi, I have a custom post type that im pulling into the page with the blog post element from the builder. I is set to use custom taxonomies and I have the categories selected and its pulling them in, but it says there should be 3 pages, when I click on page 2 i just get a 404? Have you seen this before?

    Here is the page.

    #835760

    Hey acscreativenew,

    Did you try to reset your permalink settings under Settings->Permalinks? If that doesn’t work then please post admin login details in private so that we can have a closer look.

    Best regards,
    Rikard

    #835886

    Yes, I did try and reset the permalinks and it seemed to do nothing. I will add login info below.

    Thanks
    -Dan

    #838310

    Hi,

    Can you please provide us with FTP ACCESS also, so we can check the .htaccess file please?
    Thank you very much

    Best regards,
    Basilis

    #838685

    HI Please find the FTP info in the Private section. Just wondering why would this have anything to do with the .htaccess file?

    #841032

    Hi,

    The settings permissions ( CHMOD ) on .htaccess are not properly and I did tried to change them but it was not saving
    Can you check that please with the hosting company?

    Best regards,
    Basilis

    #843584

    Hi,

    So im not really sure what you mean by this. I know I cant change any of the server settings since im on a shared hosting.

    I just went into the .htaccess file and made edits to it and saved it and it worked fine.

    #844850

    Hi acscreativenew,

    Do you mean the issue is resolved or just the .htaccess file editing and saving?

    Best regards,
    Victoria

    #844852

    Hi,

    The issue with the site is not fixed.

    I was able to go in and edit and save the .htaccess file with no issue.

    I wont be able to make any edits to the server settings due to our hosting environment.

    Thanks
    -Dan

    #845838

    Hi Dan,

    Have you tested this functionality with the default theme?

    Best regards,
    Victoria

    #846434

    Hi,

    Just tested this and pagination does seem to work when I change over the the 2017 theme.

    Thanks
    -Dan

    #848743

    Any other ideas here?

    #849372

    Hi,

    Please try to register the custom post type and taxonomy with the following plugin.

    // https://wordpress.org/plugins/custom-post-type-ui/

    Best regards,
    Ismael

    #874269

    Hi,

    I registered the CPT in the functions file with code. Its working fine and I don’t really want to use a plugin to create my CTP. Is there anything else we can try?

    #875913

    Hi,

    Is the pagination working? The plugin won’t affect the frontend in any way if that’s what you’re worried about.

    Best regards,
    Ismael

    #876647

    The Pagination is NOT working. I have added the plugin and its still not working. I have not loaded my CPT in the plugin because I already have it registered in my functions files and I don’t want to risk losing any of my data.

    here is the code for my CPT

    
    // let's create the function for the custom type
    function custom_post_newsroom() { 
    	// creating (registering) the custom type 
    	register_post_type( 'newsroom', /* (http://codex.wordpress.org/Function_Reference/register_post_type) */
    	 	// let's now add all the options for this post type
    		array('labels' => array(
    			'name' => __( 'Newsroom' ), /* This is the Title of the Group */
    			'singular_name' => __( 'Newsroom' ), /* This is the individual type */
    			'all_items' => __( 'All News' ), /* the all items menu item */
    			'add_new' => __( 'Add New' ), /* The add new menu item */
    			'add_new_item' => __( 'Add New News Item' ), /* Add New Display Title */
    			'edit' => __( 'Edit' ), /* Edit Dialog */
    			'edit_item' => __( 'Edit News Item' ), /* Edit Display Title */
    			'new_item' => __( 'New News Item' ), /* New Display Title */
    			'view_item' => __( 'View Newsroom' ), /* View Display Title */
    			'search_items' => __( 'Search Newsroom' ), /* Search Custom Type Title */ 
    			'not_found' =>  __( 'No News Found.' ), /* This displays if there are no entries yet */ 
    			'not_found_in_trash' => __( 'Nothing found in Trash' ), /* This displays if there is nothing in the trash */
    			'parent_item_colon' => ''
    			), /* end of arrays */
    			'description' => __( 'This is the example custom post type' ), /* Custom Type Description */
    			'public' => true,
    			'publicly_queryable' => true,
    			'exclude_from_search' => false,
    			'show_ui' => true,
    			'query_var' => true,
    			'menu_position' => 6, /* this is what order you want it to appear in on the left hand side menu */ 
    			'menu_icon' => 'dashicons-format-aside', /* the icon for the custom post type menu. uses built-in dashicons (CSS class name) */
    			'rewrite'	=> array( 'slug' => 'newsroom', 'with_front' => false ), /* you can specify its url slug */
    			'has_archive' => 'true', /* you can rename the slug here */
    			'capability_type' => 'post',
    			'hierarchical' => true,
    			/* the next one is important, it tells what's enabled in the post editor */
    			'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'revisions', 'comments' )
    	 	) /* end of options */
    	); /* end of register post type */
    	
    } 
    
    // adding the function to the WordPress init
    add_action( 'init', 'custom_post_newsroom');
    
    #877358

    Hi,

    Did you refresh the permalinks after creating the custom post type? Please go to the Settings > Permalinks panel then click the “Save” button. Check the posts page again afterwards. Don’t forget to remove the browser cache before checking the page.

    Best regards,
    Ismael

    #883128

    I cant create the CPT since I already have this created in my functions file. I do not wish to use a plugin to create the CPT because its not needed when you can do it in your functions file.

    So no I have not create the CPT in the plugin you suggested and I have not saved the Permalinks because there is nothing to save as of right now.

    Is there something that can be done with out using this plugin, im not sure why this plugin is needed. I have create the CPT in the functions file like I do every time but it just does not seem to be working right now, the pagination that is.

    Thanks
    -Dan

    #883441

    Hi,

    Did you modify the templates? The pagination looks different from the default markup.

    My bad. The pagination markup is actually correct.

    Best regards,
    Ismael

    #883497

    Hi,

    I have not changed anything of the files for this site. You can also see its going it on the live site I have set up.

    Not sure why its happening but I would live to get this fixed.

    #884494

    Hi,

    I’m still not sure what’s causing the issue. I would like to check this again but we only have access to the staging site. Please provide the WP and FTP details for the live site.

    Best regards,
    Ismael

    #884695

    Here is all the info for the live site.

    Thanks
    -Dan

    #885408

    Hi,

    Thank you for the update. However, these credentials are not working. Please check it carefully.

    Best regards,
    Ismael

    #885644

    That password should work now. Sorry about that.

    #887662

    Hi,

    The “newsroom” page conflicts with the “newsroom” archive page. Please rename the “newsroom” page. The pagination works fine if the page name is different.

    Best regards,
    Ismael

    #888031

    ok, i see that and i got it working when changing the name.

    I dont get why it would conflict? I dont have an archive page for the newsroom. I just set up a page and added post via the builder.

    #888324

    Hi,

    The archive newsroom is automatically created because it’s the name of the custom post type. You have to use a different page name.

    Best regards,
    Ismael

Viewing 27 posts - 1 through 27 (of 27 total)
  • You must be logged in to reply to this topic.