Home › Forums › Pro Support › Error: Your topic cannot be created at this time.
- This topic has 4 replies, 3 voices, and was last updated 2 years ago by
elvin.
-
AuthorPosts
-
March 24, 2021 at 6:01 am #28442
Robert
ParticipantI cant create a topic with more then (i didnt count them) 25 words orso…
What is appenin? 🙂
March 24, 2021 at 9:48 am #28450Tom
KeymasterThis is a bbPress issue we’ve been battling with. I’ve just tried something else – let me know if it continues to happen.
March 24, 2021 at 10:40 am #28453Robert
ParticipantHi tom, just saw your email in my mailbox (i’m the same guy 😉
Thanks for responding. i will try again, and will let you know if it happens again.
Cheers!March 24, 2021 at 10:40 am #28455Robert
Participantok, i typed why because my post got rejected…. Too many words?
here goes:
After searching and tweaking, fiddling and trying, I decided to ask my question on the forum 🙂
I have 2 custom post types;
– Speaker
– Abstracts (something the speaker said)The abstracts are shown in a 3 column grid on the homepage.
My client asked if it’s possible to show the link to the speaker, under the title of the abstract. (as I would with a category or a tag).
Normally I would connect those via a category or a tag, but as these are both custom post types, it’s not possible (out of the box) to make a relation between these 2 post types.
In the ‘Abstract’ post, I made a custom field (link) with the Generatepress Elements/hooks, so I can select the url to the speaker, and show it on that particular abstract below the content.
Now, my question;
How can I show this same link (to the speaker of this abstract) under the title of the post type abstract?Examples:
On the 3 column grid of this homepage, https://www.digitalhumanitiestilburg.com/The way the abstract should look (title, category – we are not going to use images here, so text only and no cards or any fancy layout)
https://www.digitalhumanitiestilburg.com/speakers/I would like the same speaker-link as in: https://www.digitalhumanitiestilburg.com/abstracts/finding-the-human-in-the-dark-forest-perspectives-on-user-practices-outside-of-social-media-platforms/ (speaker is below the content, in the yellow box).
I have also tried to place this same code below via a custom hook, but it didn’t work (maybe I missed an important step or messed up the custom hook- which I found somewhere on the forum wpsp_below_title or something like that)
The code I used for the custom link is this (and i’d like to ‘get’ the same link to show under the title of the abstracts):
<div class=”speaker-wrapper”>
<?php$link = get_field(‘speaker_in_abstract’);
if( $link ):
$link_url = $link[‘url’];
$link_title = $link[‘title’];
$link_target = $link[‘target’] ? $link[‘target’] : ‘_self’;
?><div class=”speaker-info”>
Speaker:
” target=”<?php echo esc_attr( $link_target ); ?>”><?php echo esc_html( $link_title ); ?>
</div><?php endif; ?>
</div>Hope you can help me out!
Thanks in advance!March 24, 2021 at 4:39 pm #28474elvin
ModeratorHi there,
Please see my reply here:
https://wpshowposts.com/support/topic/custom-field-under-title-custom-post-type/#post-28473Let us know how it goes.
-
AuthorPosts
- You must be logged in to reply to this topic.