m2ew
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Post Type UI] Updated and now 404I installed 1.0.2 from 0.8.0 on WordPress 4.1. My post types were still in the admin but all post types (excluding default posts) were showing as 404. I reverted back to 0.8.0 and all post types are now showing.
Just updated to .9.9.9.4. and it worked. Gotta love being at the mercy of internet superpowers ??
Same here. Looks like the source code for the iframe html is showing up blank.
404 error is showing when referencing the iframe src, which leads me to believe this is the cause it appearing empty.Forum: Themes and Templates
In reply to: custom post type archive-{posttype}.php wont loadTry resaving the your permalink structure. Once I added the ‘has_archive’ => true
& did that, the archive-{posttype}.php came up no problem in 3.1.Forum: Plugins
In reply to: Custom post types hierarchical custom taxonomies and breadcrumbshere is the link to the function
https://wordpress.pastebin.com/pjgQCbjQForum: Plugins
In reply to: Custom post types hierarchical custom taxonomies and breadcrumbsI’ve had issues with single.php and listing a hierarchal taxonomy in order.
wp_list_categories works well for this, but there is an issue with changing the separator (i.e. [br/]) when you set the list style to ‘none’.https://wordpress.stackexchange.com/questions/646/wordpress-remove-br-separator-from-last-item-in-wp-list-categories is a great example of how to set this up using the php’s implode / explode. However, this can be more automated by adding it to a function in themes functions.php file. All I changed was the $output var formatting.
Here is the function I have:
[Code moderated as per the Forum Rules. Please use the pastebin]
to call this in your single.php setup you $args the same as if you were using wp_list_categories.
wwp_posttype_breadcrumb( $args );
If you want to change the seperator just add
$myseperator = “:”;
wwp_posttype_breadcrumb( $args , $myseperator);Here is the reference link for wp_list_categories
https://codex.www.ads-software.com/Function_Reference/wp_list_categoriesForum: Fixing WordPress
In reply to: How to display content sub pages from another parent pageFor content, should just be:
<?php the_content(); ?>Forum: Fixing WordPress
In reply to: How to display content sub pages from another parent pageI don’t know if this helps. This code will pull posts from a specific page.
<?php query_posts(‘page_id=33’); ?>
<?php while (have_posts()) : the_post(); ?>
<h4><?php the_title(); ?></h4>
<?php the_content(‘Read the rest of this entry »’); ?>
<?php endwhile; ?>Forum: Fixing WordPress
In reply to: “There is no is_subpage() function yet”… how to use this?Hey hilj
You may want to try this plugin:https://www.mossroot.com/worlds/wordpress-notes-and-plugins/sub-page-functions/
On another note, if you need to pull a list of subpages from a different page (other than the one being viewed) you can do it this way.
<?php // add subpage query
query_posts(‘pagename=our-services’); ?>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>
<?php // add child / subpage list
$children = wp_list_pages(‘title_li=&echo=0&child_of=’ . $post->ID);
if ($children) { ?>
<ul id=”servicelinks”>
<?php echo $children; ?><?php }
?>If you additionally want to pull the content from another page, then just add <?php the_content(); ?> the line after <?php while (have_posts()) : the_post(); ?>