Create our settings page output.




  1. if ( !function_exists( 'cptui_support' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/inc/support.php'; 
  5. // NOTICE! Understand what this does before running. 
  6. $result = cptui_support(); 

Defined (1)

The function is defined in the following location(s).

  1. function cptui_support() { 
  2. echo '<div class="wrap cptui-support">'; 
  4. /** 
  5. * Fires at the top of the FAQ/Support page. 
  6. * @since 1.0.0 
  7. */ 
  8. do_action( 'cptui_main_page_before_faq' ); ?> 
  10. <h1><?php esc_html_e( 'Custom Post Type UI Support', 'custom-post-type-ui' ); ?></h1> 
  12. <p> 
  13. <?php printf( 
  14. esc_html__( 'Please note that %s this plugin will not handle display %s of registered post types or taxonomies in your current theme. It simply registers them for you. To display your data, check out %s. If all else fails, visit us on the %s', 'custom-post-type-ui' ),  
  15. '<strong>',  
  16. '</strong>',  
  17. '<a href="https://pluginize.com/plugins/custom-post-type-ui-extended/?utm_source=faq&utm_medium=text&utm_campaign=cptui">' . esc_html__( 'CPTUI Extended' ) . '</a>',  
  18. '<a href="https://www.wordpress.org/support/plugin/custom-post-type-ui/">' . esc_html__( 'Support Forums', 'custom-post-type-ui' ) . '</a>' 
  19. ); ?></p> 
  21. <table id="support" class="form-table cptui-table"> 
  22. <tr> 
  23. <td class="outter"> 
  24. <h2><?php esc_html_e( 'Pluginize', 'custom-post-type-ui' ); ?></h2> 
  25. <ol id="questions_pluginize"> 
  26. <li> 
  27. <span tabindex="0" class="question" aria-controls="q1" aria-expanded="false"><?php esc_html_e( 'What is Pluginize?', 'custom-post-type-ui' ); ?></span> 
  28. <div class="answer" id="q1"><?php esc_html_e( 'Pluginize is a marketplace of plugins by WebDevStudios.', 'custom-post-type-ui' ); ?> 
  29. </div> 
  30. </li> 
  31. <li> 
  32. <span tabindex="0" class="question" aria-controls="q2" aria-expanded="false"><?php esc_html_e( 'What does Pluginize offer?', 'custom-post-type-ui' ); ?></span> 
  33. <div class="answer" id="q2"><?php esc_html_e( 'Pluginize offers both free and paid WordPress plugins.', 'custom-post-type-ui' ); ?> 
  34. </div> 
  35. </li> 
  36. <li> 
  37. <span tabindex="0" class="question" aria-controls="q3" aria-expanded="false"><?php esc_html_e( 'Will these ad spots ever show third-party data?', 'custom-post-type-ui' ); ?></span> 
  38. <div class="answer" id="q3"><?php esc_html_e( 'No. These spots are intended for and will only be used for other available WebDevStudios products and services.', 'custom-post-type-ui' ); ?> 
  39. </div> 
  40. </li> 
  41. <li> 
  42. <span tabindex="0" class="question" aria-controls="q4" aria-expanded="false"><?php esc_html_e( 'How can I remove the ads that suddenly started showing up?', 'custom-post-type-ui' ); ?></span> 
  43. <div class="answer" id="q4"> 
  44. <?php 
  45. printf( 
  46. esc_html__( 'You can have them automatically removed from display via a purchased copy of %s.', 'custom-post-type-ui' ),  
  47. sprintf( '<a href="%s">%s</a>',  
  48. 'https://pluginize.com/plugins/custom-post-type-ui-extended/?utm_source=faq-remove&utm_medium=text&utm_campaign=cptui',  
  49. 'Custom Post Type UI Extended' 
  50. ); ?> 
  51. </div> 
  52. </li> 
  53. <li> 
  54. <span tabindex="0" class="question" aria-controls="q5" aria-expanded="false"><?php esc_html_e( 'Are these ad spots tracking my personal information in any way?', 'custom-post-type-ui' ); ?></span> 
  55. <div class="answer" id="q5"><?php esc_html_e( 'No, there is no data being sent out from your site with these. The only way anything is tracked is via UTM parameters for WebDevStudios\'s analytics so we can get an idea of where traffic is coming from. Those are only tracked if you actually click on an ad spot.', 'custom-post-type-ui' ); ?> 
  56. </div> 
  57. </li> 
  58. <li> 
  59. <span tabindex="0" class="question" aria-controls="q6" aria-expanded="false"><?php esc_html_e( 'Do I still need Custom Post Type UI if I purchase and install Custom Post Type UI Extended?', 'custom-post-type-ui' ); ?></span> 
  60. <div class="answer" id="q6"><?php esc_html_e( 'Yes you will. The Custom Post Type UI Extended is not a replacement of the free version with added extra features. It acts based on the data made available through Custom Post Type UI', 'custom-post-type-ui' ); ?> 
  61. </div> 
  62. </li> 
  63. <li> 
  64. <span tabindex="0" class="question" aria-controls="q7" aria-expanded="false"><?php esc_html_e( 'Does Custom Post Type UI Extended require multisite?', 'custom-post-type-ui' ); ?></span> 
  65. <div class="answer" id="q7"><?php esc_html_e( 'No it does not. The Shortcode builder is not multisite dependent and will work with either setup.', 'custom-post-type-ui' ); ?> 
  66. </div> 
  67. </li> 
  68. </ol> 
  69. </td> 
  70. <td class="outter"> 
  71. <h2><?php esc_html_e( 'General', 'custom-post-type-ui' ); ?></h2> 
  72. <ol id="questions_general"> 
  73. <li> 
  74. <span tabindex="0" class="question" aria-controls="q8" aria-expanded="false"><?php esc_html_e( 'I have post types with spaces in their slug and can not successfully delete them. How can I fix that?', 'custom-post-type-ui' ); ?></span> 
  75. <div class="answer" id="q8"><?php esc_html_e( 'Visit the Import/Export page and copy the export code into the import side on the left. Replace the space with an underscore and then click "Import". You should be able to delete the individual post types afterwards.', 'custom-post-type-ui' ); ?> 
  76. </div> 
  77. </li> 
  78. <li> 
  79. <span tabindex="0" class="question" aria-controls="q9" aria-expanded="false"><?php esc_html_e( 'I changed my custom post type name and now I can not get to my posts. How do I get them back?', 'custom-post-type-ui' ); ?></span> 
  80. <div class="answer" id="q9"><?php esc_html_e( 'You can either change the custom post type name back to the original name or try the Post Type Switcher plugin', 'custom-post-type-ui' ); ?> 
  81. <a href="https://wordpress.org/plugins/post-type-switcher/" target="_blank">https://wordpress.org/extend/plugins/post-type-switcher/</a> 
  82. </div> 
  83. </li> 
  84. <li> 
  85. <span tabindex="0" class="question" aria-controls="q10" aria-expanded="false"><?php esc_html_e( 'I changed my custom post type or taxonomy slug and now I have duplicates shown. How do I remove the duplicate?', 'custom-post-type-ui' ); ?></span> 
  86. <div class="answer" id="q10"><?php esc_html_e( 'Renaming the slug for a post type or taxonomy creates a new entry in our saved option which gets registered as its own post type or taxonomy. Since the settings will be mirrored from the previous slug, you will just need to delete the previous version\'s entry.', 'custom-post-type-ui' ); ?> <a href="https://wordpress.org/plugins/post-type-switcher/" target="_blank">https://wordpress.org/extend/plugins/post-type-switcher/</a></div> 
  87. </li> 
  88. <li> 
  89. <span tabindex="0" class="question" aria-controls="q11" aria-expanded="false"><?php esc_html_e( 'I have added post thumbnail and/or post format support to my post type, but those do not appear when adding a post type post.', 'custom-post-type-ui' ); ?></span> 
  90. <div class="answer" id="q11"><?php esc_html_e( 'Make sure your theme has post "post-thumbnails" theme support enabled.', 'custom-post-type-ui' ); ?> <a href="https://codex.wordpress.org/Function_Reference/add_theme_support" target="_blank">https://codex.wordpress.org/Function_Reference/add_theme_support</a></div> 
  91. </li> 
  92. <li> 
  93. <span tabindex="0" class="question" aria-controls="q12" aria-expanded="false"><?php esc_html_e( 'Do you have any recommendations for an alternative to Visual Composer?', 'custom-post-type-ui' ); ?></span> 
  94. <div class="answer" id="q12"><?php esc_html_e( 'We recommend using VelocityPage.', 'custom-post-type-ui' ); ?> 
  95. <a href="https://velocitypage.com" target="_blank">https://velocitypage.com</a> 
  96. </div> 
  97. </li> 
  98. <li> 
  99. <span tabindex="0" class="question" aria-controls="q13" aria-expanded="false"><?php esc_html_e( 'Is there any way to get CPTUI-registered post types working with Visual Composer Media Grid?', 'custom-post-type-ui' ); ?></span> 
  101. <div class="answer" id="q13"><?php esc_html_e( 'Please see the solution from the following forum support thread.', 'custom-post-type-ui' ); ?> 
  102. <a href="https://wordpress.org/support/topic/custom-post-type-and-visual-composer-grid-block?replies=11#post-7111458" target="_blank">https://wordpress.org/support/topic/custom-post-type-and-visual-composer-grid-block?replies=11#post-7111458</a> 
  103. </div> 
  104. </li> 
  105. <li> 
  106. <span tabindex="0" class="question" aria-controls="q14" aria-expanded="false"><?php esc_html_e( 'Why can I not use dashes in post type or taxonomy slugs?', 'custom-post-type-ui' ); ?></span> 
  108. <div class="answer" id="q14"><?php esc_html_e( 'CPTUI tries to make smart choices for our users, and forcing underscores is one of them. Please see the tutorial at the following URL for how to get dashes in your permalink urls while continuing to use underscores for the actual slug.', 'custom-post-type-ui' ); ?> 
  109. <a href="http://docs.pluginize.com/article/135-dashes-in-post-type-taxonomy-slugs-for-url-seo" target="_blank">http://docs.pluginize.com/article/135-dashes-in-post-type-taxonomy-slugs-for-url-seo</a> 
  110. </div> 
  111. </li> 
  112. </ol> 
  113. </td> 
  114. </tr> 
  115. <tr> 
  116. <td class="outter"> 
  117. <h2><?php esc_html_e( 'Front-end Display', 'custom-post-type-ui' ); ?></h2> 
  118. <ol id="questions_front"> 
  119. <li> 
  120. <span tabindex="0" class="question" aria-controls="q15" aria-expanded="false"><?php esc_html_e( 'What template files should I edit to alter my post type display?', 'custom-post-type-ui' ); ?></span> 
  121. <div class="answer" id="q15"> 
  122. <?php 
  123. printf( 
  124. esc_html__( 'Please visit the %sTemplate Hierarchy%s page on the WordPress codex for details about available templates.', 'custom-post-type-ui' ),  
  125. '<a href="https://codex.wordpress.org/Template_Hierarchy" target="_blank">',  
  126. '</a>' 
  127. ); ?> 
  128. </div> 
  129. </li> 
  130. <li> 
  131. <span tabindex="0" class="question" aria-controls="q16" aria-expanded="false"><?php esc_html_e( 'How do I display my custom post type on my site?', 'custom-post-type-ui' ); ?></span> 
  132. <div class="answer" id="q16"> 
  133. <?php 
  134. printf( 
  135. esc_html__( 'We encourage checking out %s for easily displaying post type content wherever you can utilize a shortcode. If you prefer to handle on your own, you will need to utilize the %s class to handle display in custom locations. If you have set the post type to have archives, the archive url should be something like "http://www.mysite.com/post-type-slug"', 'custom-post-type-ui' ),  
  136. sprintf( '<a href="%s">%s</a>',  
  137. 'https://pluginize.com/plugins/custom-post-type-ui-extended/?utm_source=faq&utm_medium=text&utm_campaign=cptui',  
  138. 'Custom Post Type UI Extended' 
  139. ),  
  140. '<a href="https://codex.wordpress.org/Class_Reference/WP_Query" target="_blank">WP_Query</a>' 
  141. ); ?> 
  142. </div> 
  143. </li> 
  144. <li> 
  145. <span tabindex="0" class="question" aria-controls="q17" aria-expanded="false"><?php esc_html_e( 'I have added categories and tags to my custom post type, but they do not appear in the archives.', 'custom-post-type-ui' ); ?></span> 
  146. <div class="answer" id="q17"> 
  147. <?php 
  148. printf( 
  149. esc_html__( 'You will need to add your newly created post type to the types that the category and tag archives query for. You can see a tutorial on how to do that at %s', 'custom-post-type-ui' ),  
  150. '<a href="http://docs.pluginize.com/article/17-post-types-in-category-tag-archives" target="_blank">http://docs.pluginize.com/article/17-post-types-in-category-tag-archives</a>' 
  151. ); ?> </div> 
  152. </li> 
  153. </ol> 
  154. </td> 
  155. <td class="outter"> 
  156. <h2><?php esc_html_e( 'Advanced', 'custom-post-type-ui' ); ?></h2> 
  157. <ol id="questions_advanced"> 
  158. <li> 
  159. <span tabindex="0" class="question" aria-controls="q18" aria-expanded="false"><?php esc_html_e( 'How do I add custom metaboxes to my post type?', 'custom-post-type-ui' ); ?></span> 
  160. <div class="answer" id="q18"> 
  161. <?php 
  162. printf( 
  163. esc_html__( 'We recommend checking out %s, the latest iteration of "Custom Metaboxes and Fields for WordPress". Both are maintained by WebDevStudios.', 'custom-post-type-ui' ),  
  164. '<a href="https://wordpress.org/plugins/cmb2/" target="_blank">CMB2</a>' 
  165. ); ?> 
  166. </div> 
  167. </li> 
  168. <li> 
  169. <span tabindex="0" class="question" aria-controls="q19" aria-expanded="false"><?php esc_html_e( 'How do I add a newly registered taxonomy to a post type that already exists?', 'custom-post-type-ui' ); ?></span> 
  170. <div class="answer" id="q19"> 
  171. <?php 
  172. printf( 
  173. esc_html__( 'Check out the %s function for documentation and usage examples.', 'custom-post-type-ui' ),  
  174. '<a href="https://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type" target="_blank">register_taxonomy_for_object_type()</a>' 
  175. ); ?> 
  176. </div> 
  177. </li> 
  178. <li> 
  179. <span tabindex="0" class="question" aria-controls="q20" aria-expanded="false"><?php esc_html_e( 'Post relationships?', 'custom-post-type-ui' ); ?></span> 
  180. <div class="answer" id="q20"> 
  181. <?php 
  182. printf( 
  183. esc_html__( '%s has an excellent %spost%s introducing users to the %sPosts 2 Posts%s plugin that should be a good start.', 'custom-post-type-ui' ),  
  184. 'Pippin Williamson',  
  185. '<a href="https://pippinsplugins.com/introduction-posts-2-posts-plugin/" target="_blank">',  
  186. '</a>',  
  187. '<a href="https://wordpress.org/plugins/posts-to-posts/" target="_blank">',  
  188. '</a>' 
  189. ); ?></div> 
  190. </li> 
  191. <li> 
  192. <span tabindex="0" class="question" aria-controls="q21" aria-expanded="false"><?php esc_html_e( 'Is there any function reference list?', 'custom-post-type-ui' ); ?></span> 
  193. <div class="answer" id="q21"><?php printf( esc_html__( '%s has compiled a nice list of functions used by our plugin. Note not all will be useful as they are attached to hooks.', 'custom-post-type-ui' ),  
  194. '<a href="http://hookr.io/plugins/custom-post-type-ui/" target="_blank">Hookr.io</a>' ); ?></div> 
  195. </li> 
  196. <li> 
  197. <span tabindex="0" class="question" aria-controls="q22" aria-expanded="false"><?php esc_html_e( 'How do I filter the "enter title here" text in the post editor screen?', 'custom-post-type-ui' ); ?></span> 
  198. <div class="answer" id="q22"><p><?php esc_html_e( 'Change text inside the post/page editor title field. Should be able to adapt as necessary.', 'custom-post-type-ui' ); ?></p> 
  199. <pre><code>function my_custom_title_text( $title ) { 
  200. global $post; 
  201. if ( 'ENTER POST TYPE SLUG HERE' == $post->post_type ) 
  202. return 'NEW CUSTOM TEXT HERE'; 
  203. add_filter( 'enter_title_here', 'my_custom_title_text' ); 
  204. </code></pre></div> 
  205. </li> 
  206. </ol> 
  207. </td> 
  208. <td class="outter"> 
  210. <?php 
  212. /** 
  213. * Fires in the last table cell of the FAQ list. 
  214. * @since 1.0.0 
  215. */ 
  216. ?> 
  217. </td> 
  218. </tr> 
  219. </table> 
  221. <?php 
  223. /** 
  224. * Fires at the bottom of the FAQ/Support page. 
  225. * @since 1.0.0 
  226. */ 
  228. echo '</div>';