I’d like to just show the excerpts on the tag-archive page. When I do a search, the results use the same template page but show just the excerpts. That’s what I’d like for the tags, too.
Thanks for any help here!
]]>I created a custom post type, name ‘movie’ with rewrite => slug ‘films’.
I created a page with the slug ‘films’ so i can customize the page as i want and display the content of my CPT ‘movie’. It works fine.
I registered a tag taxonomy for the CPT, named ‘movie_tag’, width the slug ‘films/tags’. I can access my movie tag trough the url “xxx.com/films/tags/my_tag”.
I’d like to access a custom page, containing every tags (movie_tag) used with my CPT ‘movie’ and display them on this “archive” page, but i don’t know how.
Here is my code, did i forgot something? I tried naming several pages like archive-movie_tag.php taxonomy-movie_tag.php, even archive.php and tag.php but each time i accessed “xxx.com/films/tags/” i went to the index.php.
register_taxonomy(
'movie_tag',
'movie',
array(
'label' => 'Tags',
'labels' => array(
'name' => 'Tags',
'singular_name' => 'Tag',
'all_items' => 'Tous les tags',
'edit_item' => 'éditer le tag',
'view_item' => 'Voir le tag',
'update_item' => 'Mettre à jour le tag',
'add_new_item' => 'Ajouter un tag',
'new_item_name' => 'Nouveau tag',
'search_items' => 'Rechercher parmi les tag',
'popular_items' => 'Tags les plus utilisés'
),
'hierarchical' => false,
'has_archive' => false,
'capability_type' => 'page',
'public' => true,
'rewrite' => array(
'slug' => 'films/tags',
'with_front' => false,
),
)
);
]]>Another quite annoying thing is, it takes forever for Widget Controller to display option window. After using this plugin on about 40 widgets, waiting for this plugin to open its options forever, renders it unworkable. It doesn’t work.
]]>In my current code it doesn’t return the tag=ExampleNameHere
Example URL on Tag Archive:
?tag=adventure&cat=32
Fails when search in Tag Archive:
?s=the&cat=32&tag=
Might be a little mistake of mine, but I can’t seem to figure it out, so wanted to ask assistance on your plugin
https://www.ads-software.com/plugins/wp-extended-search/
]]>Tags order fine when I use the search form from archive, but if I press on a tag in the archive and use search form.. It does not return the tag in the url to order it in search
How it looks from archive search:
https://localhost/?s=the&cat=32&tag=
Press on a tag from the search above I get this:
https://localhost/?tag=adventure&cat=32&s=the
This works fine..
But when I press on a tag in archive without search:
https://localhost/?tag=drama&cat=32&s=
And search from in that tag it ends up with not returning tag:
https://localhost/?s=the&cat=32&tag=
Any help on this.. This seems odd?
]]>https://www.ads-software.com/plugins/custom-post-type-permalinks/
]]>I see you have built in ways to show Excerpts on the Home, Category & Search pages. How can I do the same with the Tag Archive pages. I’ve tried fooling around with the a child functions.php and is_tag variable but have had no success.
Thanks
]]>I’ve created an custom post type for top of the page alerts and placed the WP_Query call in my header.php template. It correctly displays on all pages except on a tag archive page. On tag archive pages, it pulls the query data from the advanced custom fields database fields. I’ve double checked the archive.php, custom post archive template, created a tag archive template and none of it seems to affect this issue.
For example on every page other than the tag archive page the WP_Query code renders like this:
<!-- ALERTS Start -->
<div id="alert-153" data-alert class="header-alert-box">
<a href="https://example.com/ahpba-2015/">Click here to view 2015 AHPBA Lecture Recordings</a>
<a href="#" class="close">×</a>
</div>
<!-- ALERTS End -->
But on the tag archive pages it renders like this:
<!-- ALERTS Start -->
<div id="alert-214" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-211" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-202" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-201" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-203" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-208" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-209" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-210" data-alert class="header-alert-box">
<a href="#" class="close">×</a>
</div>
<div id="alert-48" data-alert class="header-alert-box">
a:7:{s:4:"type";s:3:"url";s:12:"instructions";s:0:"";s:8:"required";i:0;s:7:"wrapper";a:3:{s:5:"width";s:0:"";s:5:"class";s:0:"";s:2:"id";s:0:"";}s:13:"default_value";s:0:"";s:11:"placeholder";s:25:"https://vine.co/u/USER_ID";s:17:"conditional_logic";a:1:{i:0;a:1:{i:0;a:3:{s:5:"field";s:19:"field_54e3e971d7882";s:8:"operator";s:2:"==";s:5:"value";s:4:"Vine";}}}}
<a href="#" class="close">×</a>
</div>
<div id="alert-56" data-alert class="header-alert-box">
a:7:{s:4:"type";s:3:"url";s:12:"instructions";s:0:"";s:8:"required";i:0;s:7:"wrapper";a:3:{s:5:"width";s:0:"";s:5:"class";s:0:"";s:2:"id";s:0:"";}s:13:"default_value";s:0:"";s:11:"placeholder";s:28:"https://medium.com/@USERNAME";s:17:"conditional_logic";a:1:{i:0;a:1:{i:0;a:3:{s:5:"field";s:19:"field_54e3e972d7883";s:8:"operator";s:2:"==";s:5:"value";s:6:"Medium";}}}}
<a href="#" class="close">×</a>
</div>
<!-- ALERTS End -->
This makes no sense to me, and I’m completely at a loss. I’ll happily provide any info anyone might want, does anyone have any ideas on how to fix it?
]]><h3><span class="toc_category"><?php the_category(); ?></span><span class="toc_title"><?php the_title(); ?></span><span class="toc_author"><?php echo get_the_author(); ?></span></h3>
It’s pretty simple—just spitting out a list of links to posts. Since we updated to WordPress 4, only some of the posts are being listed. So if we have two posts tagged 38.2-Spring-2014, maybe one of them will show up in the tag archive view, but not the other. We’ve tried deleting the tag and adding it again, but the only thing that works is duplicating the post and deleting the old one. We’ve repaired our mysql database. No luck. I’m wondering if we need to completely recreate our database, or reinstall WordPress…?
]]>I’m using <?php the_tags(); ?>
on the CPT posts/associated page to display a linked list of each post’s associated tags. The link that this generates is “mysite/tag/thetag”, when I believe what it should be is “mysite/customposttype/tag/thetag” (or something similar). Additionally, if I go to the URL that I would expect to exist based on my understanding, nothing shows up.
The link to “mysite/tag/thetag” just displays a “Not Found” with a search bar, which is what the site’s archive template is set to display if the tag page doesn’t exist.
I tried creating a “tag-customposttype.php” template but this doesn’t seem to be working at all.
I had a similar problem with creating the blog archives (as in, couldn’t get the permalink structure to display properly, even after manually registering the post type in the theme’s functions.php) and was able to solve it with the Archives for Custom Post Types plugin.
Unfortunately, this is site is running on localhost at the moment so I can’t share the site itself, but I would love any help that you might be able to offer. I’ve spent hours searching the WP codex/forums/general internet for a solution and nothing has worked so far. Please let me know if there’s any additional information that might be necessary. Thanks in advance!
]]>