Jellico
Forum Replies Created
-
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Change the placeholder text for search windowWell, I’m using elementor, so I just call [searchform] shortcode on my search page, and I’ll get a little input field and a send button.
Isn’t that generated by your plugin?Forum: Plugins
In reply to: [Relevanssi - A Better Search] exlude by tag?Hey! It worked!
kiitos paljon
Forum: Plugins
In reply to: [Relevanssi - A Better Search] exlude by tag?Didn’t get it to work.
I added:
add_filter( 'relevanssi_do_not_index', 'rlv_index_filter', 23, 2 ); function rlv_index_filter( $block, $post_id ) { if ( has_term( 'jazz', 'genre', $post_id ) ) { $block = true; } return $block;
In my theme functions.PHP
And the tag I’d is 23, it still index it.
And what does the word jazz and genre do in the code?
I even tried to change from jazz to the name of the tag that was going to be excluded, but the same result
A tip to help us newbies, is to explain what in a code that we need to change..
- This reply was modified 6 years, 6 months ago by Jellico.
Forum: Plugins
In reply to: [Relevanssi - A Better Search] exlude by tag?Then i will do so, thx
Forum: Plugins
In reply to: [Relevanssi - A Better Search] exlude by tag?Thx, that’s great, ehum, for a WordPress newbie, where should I add the filter hook code?, What file?
Forum: Plugins
In reply to: [WP Statistics - The Most Popular Privacy-Friendly Analytics Plugin] ErrorThe same issue here!
Forum: Plugins
In reply to: [Duplicate Page] Why was this plugin removed from wordpress?Im also curious..
Forum: Fixing WordPress
In reply to: Preview a custom form before posting (no preview button exist)@bcworkz I’m not after a plugin, I just want something that triggers WordPress preview of current post function, I guess there is a function for that since I can preview my posts if I’m using the internal “add new post” function.
Forum: Fixing WordPress
In reply to: Preview a custom form before posting (no preview button exist)@jdembowski well actually, to create a preview function, writing PHP would be the only answer at this moment, since there aren’t any plugins for this.
So I’m looking for how to save the answers as draft (because as I have understood it, it must be saved before previewing) and how to instruct WordPress to preview the the current post.
Forum: Fixing WordPress
In reply to: Preview a custom form before posting (no preview button exist)I’m not good enough for coding it.
I’m using USP pro for the custom fields, and the layout is elementor pro.None of them do however have a preview post function.
I have seen a few plugin for preview, but none that are for custom forms..
Forum: Fixing WordPress
In reply to: How to preview a post from a custom form pageI Think this post got posted in the wrong forum.
I’m re_posting in the right one, Developing with WordPress
closing this one..Forum: Developing with WordPress
In reply to: Replacing get_the_title() in comments.php with custom fieldSolved
Forum: Developing with WordPress
In reply to: Replacing get_the_title() in comments.php with custom field<?php $rainbowcats_comment_count = get_comments_number(); if ( '1' === $rainbowcats_comment_count ) { printf( /* translators: 1: title. */ <strong>esc_html__( 'V?ra tankar om “%1$s”', 'rainbowcats' ), '<span>' . get_post_meta(usp-custom-1) . '</span>'</strong> ); } else { printf( // WPCS: XSS OK. /* translators: 1: comment count number, 2: title. */ esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $rainbowcats_comment_count, 'comments title', 'rainbowcats' ) ), number_format_i18n( $rainbowcats_comment_count ), '<span>' . get_the_title() . '</span>' ); } ?>
Is part of the comment.PHP
I’ve tried remove the standard title and display a custom from current post field called usp-custom-1
This was part of the original code:
/* translators: 1: title. */ esc_html__( 'One thought on “%1$s”', 'rainbowcats' ), '<span>' . get_the_title() . '</span>'
And this is what I changed it to:
`/* translators: 1: title. */
esc_html__( ‘V?ra tankar om “%1$s”’, ‘rainbowcats’ ),
‘<span>’ . get_post_meta(usp-custom-1) . ‘</span>’`- This reply was modified 6 years, 10 months ago by Jellico.
Forum: Developing with WordPress
In reply to: Replacing get_the_title() in comments.php with custom fieldWell, as I wrote, I’m a newbie, I have no idea (well, little maybe) what I’m doing.
I’m mostly using plugins and I’m using elementor. However, the comments.php was necessary to manually edit, both because it wasn’t in my native language, and since it didn’t display the right data.The custom field is a normal custom field, I have no idea how it’s saved, and apparently no idea how to show it, since the command I thought would display the data, only resulted in an error, that’s why I asked what the right command would be…
Forum: Developing with WordPress
In reply to: Replacing get_the_title() in comments.php with custom fieldWell, it says is if the custom data field have more than one set of data, this is unique custom field that only have one string attached to each post.
.. I’ve read, but still didn’t understand it (I did say I was a newbie?)
- This reply was modified 6 years, 10 months ago by Jellico.