Custom post type not working
-
my website : https://thatpages.com
I tried your amp app and found that custom post type not work.
The page I need help with: [log in to see the link]
-
@asbplanet It looks like you’re using another AMP plugin at present. Regardless custom post types are supported, depending on the mode you’ve selected and your configuration you may need to enable AMP for that custom post type.
If you want to share an example of any URL when using this AMP plugin we can assist further.
I just again installed your plugin.
Template mode “reader”
This is custom post type.https://thatpages.com/latest-cnn-news-updategupta-reacts-to-georgias-safety-guidelines-its-ridiculousthatpages/ this is not working on amp .@asbplanet Does the same problem occur when checking using
transitional
mode? Please try temporarily disabling your active optimisation and caching plugins before attempting to access the AMP version of that URL again.If that fails please share your Site Health information.
I don’t know what is this “transitional mode? ”
How can I show you website health report?
I disabled all plugin and still custom post is not on amp
@asbplanet You can navigate to “Tools > Site Health > Info” in order to obtain your Site Health info. Please then select the “Copy site info to clipboard” option and paste in your response here.
To switch to
transitional
mode AMP you’ll find the option when clicking on the AMP tab from within your admin dashboard. This mode allows you to use your existing theme for AMP.I want to send you website credentials . Can you gave me your email ID?
@asbplanet We’re unable to login to users sites unfortunately. But please share your Site Health information and we can hopefully assist once we have an understanding of your setup environment and plugins.
If you prefer to share your Site Health information privately you can use this form.
### wp-core ### version: 5.4 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true user_registration: 1 default_comment_status: open multisite: false user_count: 184 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/customer/www/thatpages.com/public_html wordpress_size: 46.40 MB (48651732 bytes) uploads_path: /home/customer/www/thatpages.com/public_html/wp-content/uploads uploads_size: 6.10 GB (6547885797 bytes) themes_path: /home/customer/www/thatpages.com/public_html/wp-content/themes themes_size: 9.98 MB (10459932 bytes) plugins_path: /home/customer/www/thatpages.com/public_html/wp-content/plugins plugins_size: 53.30 MB (55890479 bytes) database_size: 99.22 MB (104039424 bytes) total_size: 6.30 GB (6766927364 bytes) ### wp-dropins (1) ### object-cache.php: true ### wp-active-theme ### name: Discy Child (discy-child-theme) version: 1.0 author: 2codeThemes author_website: https://2code.info parent_theme: Discy (discy) theme_features: widgets, menus, automatic-feed-links, post-thumbnails, html5, title-tag theme_path: /home/customer/www/thatpages.com/public_html/wp-content/themes/discy-child-theme ### wp-parent-theme ### name: Discy (discy) version: 3.9.1 author: 2codeThemes author_website: https://2code.info/ theme_path: /home/customer/www/thatpages.com/public_html/wp-content/themes/discy ### wp-mu-plugins (1) ### wp-hide-loader.php: author: (undefined), version: (undefined) ### wp-plugins-active (12) ### AdSense In-feed Placement for WordPress: version: 1.1.1, author: Thomas Maier Advanced Ads: version: 1.17.10, author: Thomas Maier, Advanced Ads GmbH AMP: version: 1.5.3, author: AMP Project Contributors Contact Form 7: version: 5.1.7, author: Takayuki Miyoshi Envato Market: version: 2.0.3, author: Envato Loco Translate: version: 2.3.3, author: Tim Whitlock SG Optimizer: version: 5.4.6, author: SiteGround Wordpress Automatic Plugin: version: 3.47.1, author: ValvePress WP Hide & Security Enhancer: version: 1.5.9.9, author: Nsp Code WP Mail SMTP: version: 1.9.0, author: WPForms WPQA - The WordPress Questions And Answers Plugin: version: 3.9.1, author: 2code Yoast SEO: version: 13.5, author: Team Yoast ### wp-plugins-inactive (1) ### Accelerated Mobile Pages: version: 1.0.42, author: Ahmed Kaludi, Mohammed Kaludi ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.27 ### wp-server ### server_architecture: Linux 3.12.18-clouder0 x86_64 httpd_software: Apache php_version: 7.3.16 64bit php_sapi: cgi-fcgi max_input_variables: 4000 time_limit: 120 memory_limit: 768M max_input_time: 120 upload_max_size: 128M php_post_max_size: 128M curl_version: 7.66.0 OpenSSL/1.1.1d-fips suhosin: false imagick_availability: false htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.25-28-log client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/customer/www/thatpages.com/public_html/wp-content WP_PLUGIN_DIR: /home/customer/www/thatpages.com/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 768M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### wp_mail_smtp ### version: 1.9.0 license_key_type: lite debug: No debug notices found. ### amp_wp ### amp_mode_enabled: reader amp_templates_enabled: post, page, attachment, question amp_serve_all_templates: This option does not apply to Reader mode. amp_css_transient_caching_disabled: n/a amp_css_transient_caching_threshold: 5000 transients per day amp_css_transient_caching_sampling_range: 14 days amp_css_transient_caching_transient_count: undefined amp_css_transient_caching_time_series:
https://prnt.sc/s4i7g4 when i activate Transitional mode there is 404 error
Can you try deactivating the “SG Optimizer” plugin and try again? I recall there are compatibility problems with that plugin.
Yes I deactivated SG optimizer but still custom post type “questions” not working.i have one question is it possible to show related posts on single page?
@asbplanet Are you using a plugin that creates the questions post type, such as with the WPQA plugin? Please attempt deactivating that plugin, along with others before checking whether AMP URLs are accessible.
Also check your AMP settings, as I don’t see any AMP version available on your singular URL such as the “About Us” page.
- The topic ‘Custom post type not working’ is closed to new replies.