I am moving from a flarum forum software to WordPress and I want to create a custom post type called “Forum” this forum should have custom tags under “forum” custom post type. where these tags should be only available to “forum posts” should not mix with WordPress tags. could you help me to achieve this
–
Regards,
Hari
I was able to get random featured photos of a custom content type to appear on the page (which you’ll see when you click the link to the page.) However, I tried to add a line that specified displaying only content from a specific category (in this case “left”). When I do this, the content no longer displays.
I think that this issue may be arising because the term “left” is a part of a custom taxonomy that I created, but I don’t know for sure. Any help would be very useful. Thank you!
function pholef() {
?>
<?php
$args = array(
'category_name' => 'left',
'post_type' => 'photos',
'posts_per_page' => 1,
'orderby' => 'rand',
);
$the_query = new WP_Query( $args ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="quarter">
<?php if ( get_the_post_thumbnail() ) : /* Show the featured image if there is one */ ?>
<?php the_post_thumbnail(); ?>
<?php endif; ?>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
<?php
}
add_action('hook_top_pholef', 'pholef');
]]>Thanks in advance,
Alex
I am trying to accomplish a couple of things:
1. Display the ministry categories image instead of the category image from EM category.
2. Filter events by ministry categories.
I know enough to be dangerous when it comes to WordPress, but I’m now stuck!
Thanks In Advance!
]]>1. display ad unit 1 (GE14_Home) only /category/ge14 page and
2. display ad unit 2 (GE14_Post) only on posts which are tagged under Category > GE14 (but should not appear on GE14 category page and any other categories
Is it possible to have the same translation relationship between custom categories of custom post types when additional custom categories are added. Currently I only see the custom categories with this linking translation option?
Ie CPT_1 has Categories and then Custom_Category_1 + Custom_Category_2 and only the first Categories has a “Translations” option below it where you can choose the language and the relationship.
Thanks,
John
]]>