Forum Replies Created
-
In reply to: Missing title in replies
Thanks Robin,
Regards
CliveIn reply to: Missing title in repliesHi Robin,
Thank you for replying.
I did find something that was said years ago about not putting the topic title into the reply record, not sure why.
So I create a record in the meta table, which is a custom field in the reply form using the following code and add the topic title as a custom field to the custom message in the Fs Poster plugin I am using to post to social media.function check_and_populate_top_title_on_edit() { global $pagenow; // Check if we are in the post.php page (edit post/reply screen) and in the admin area. if ($pagenow === 'post.php' && is_admin()) { // Get the post ID from the URL query string. $post_id = isset($_GET['post']) ? intval($_GET['post']) : 0; // If we have a valid post ID, proceed. if ($post_id) { $post = get_post($post_id); // Ensure we're working with a 'reply' post type. if ($post && $post->post_type === 'reply') { // Check if the post title is empty. if (empty($post->post_title)) { // Get the parent post ID. $parent_post_id = $post->post_parent; // Check if a parent post exists. if ($parent_post_id) { // Get the parent post data. $parent_post = get_post($parent_post_id); // If the parent post exists and has a title, update the 'top_title' custom field. if ($parent_post && !empty($parent_post->post_title)) { // Add or update the 'top_title' meta field with the parent post's title. update_post_meta($post_id, 'top_title', $parent_post->post_title); } } } } } } } add_action('load-post.php', 'check_and_populate_top_title_on_edit');
In reply to: Missing title in repliesHi,
Does anyone know why the post_title is blank in the reply ?
If I populate the reply post_title with the title from the topic is it going to give me problems ?Clive
In reply to: Missing title in repliesHi,
Still trying to sort this, When I create a new reply is there a way to create a custom field of the topic title?
I see there are lots of custom fields but not the topic title.Clive
In reply to: “H1 tag missing” in bing site searchHi,
Thanks for replying, I am not sure how to check the template but I have looked at the page source in the browser and checked that there is an H1 tags and all pages show it is there. I am using the Astra Theme.In reply to: alt attribute missing for bing searchHi Robin,
Works great, thank youIn reply to: alt attribute missing for bing searchHi Robin,
That looks great, I will try it.
Thank you
CliveIn reply to: bbpress new topic too wide on mobileYes I will, it reduces the size on the desktop as well but most of the users are on mobiles.
Thank again for you help.In reply to: bbpress new topic too wide on mobileI have found what I think is it, I put in the change
}
.bbp-the-content-wrapper {
width: 80%;
height: 100% !important
}
which does bring it all onto the screen but I get a scroll bar down the right hand side it does not do anything but it is there.
does what I have done make any sense ?In reply to: bbpress new topic too wide on mobileI do yes but I have purged the cache and set cloudflare to development mode which turns of cache, could you try again please.
In reply to: bbpress new topic too wide on mobileyes I now have both of them there
In reply to: bbpress new topic too wide on mobileI had
@media screen and (max-width: 480px) {
.bsp-topic-rules {
width : 60% !important
}
}in the bbp style pack>custom css
I have tried adding the new one, but it is the same, I also tried removing the other one
In reply to: bbpress new topic too wide on mobileI am adding it to the theme additional css
In reply to: bbpress new topic too wide on mobileThat does not seem to be working
In reply to: bbpress new topic too wide on mobileIn reply to: bbpress new topic too wide on mobileHi,
I have had this problem for 3years using the twentytwelve theme, for various reasons I am just changing to the Astra theme and still getting the same problem.
It would be nice to get it sorted.In reply to: Hitting 50 forum limit? What can I do?Hi, Sorry I found it it is
function bbp_increase_topic_per_page( $args = array() ) {
$args[‘posts_per_page’] = 150 ;
return $args;
}
add_filter( ‘bbp_before_has_topics_parse_args’, ‘bbp_increase_topic_per_page’ );If anyone needs it
In reply to: Hitting 50 forum limit? What can I do?Hi,
I use functionfrom Robin,
function bbp_increase_subforums_per_page( $args = array() ) {
$args[‘posts_per_page’] = 100 ;
return $args;
}
add_filter( ‘bbp_before_forum_get_subforums_parse_args’, ‘bbp_increase_subforums_per_page’ );Any ideas how I can increase the number of topics per page ?, it is set at 100 I need to increase this to 150, please
In reply to: Website shrunk on mobileI have added
@media only screen and (max-width: 600px) {
#new-topic-0.bbp-topic-form, .bbp-reply-form {
width: 80%;
}
}back into to my style.css seems to have sorted it, but still leaves my reply to topic form over the edge of the screen on the mobile
In reply to: Notify user when a reply goes into moderationBrilliant !! thank you, works perfectly 🙂 🙂
In reply to: Notify user when a reply goes into moderationThat’s it, great thank you.
In reply to: Notify user when a reply goes into moderationyes I have bbress moderation tools by digital arm
In reply to: Notify user when a reply goes into moderationI have tried it on my live site but I still just get the same as before, I will leave it there if you would like to try
In reply to: Notify user when a reply goes into moderationI ran your code on my development site as a guest and it does not work it returns the same as on the live site as a guest.
As I am the only member, I only moderate guests.In reply to: Notify user when a reply goes into moderationJust realized that even without your code it comes back as /topic/adelaide-airport-adl/?moderation_pending=7608 never noticed that before