whatsworthseeing
Forum Replies Created
-
Forum: Plugins
In reply to: [Classic Editor] Post editor seems to have frozen in Classic EditorThanks for your update.
Mine’s been working fine since a returned to a week-old back-up of the site, but it just automatically updated WordPress and now I’ve lost the tags again.
I’ve updated all the apps, but to no avail.
Any ideas what I could do? I don’t know enough about the backend to know what jquery even means!Forum: Plugins
In reply to: [Classic Editor] Post editor seems to have frozen in Classic EditorI think this might have been down to a problem with updates of either the Classic Editor plugin or WordPress itself?
I returned to a week-old backup of the website and everything was working fine – but I was then offered updates of both of the above.
Does anyone know if the fault has been fixed, so that I can take the updates?Forum: Plugins
In reply to: [YASR - Yet Another Star Rating Plugin for WordPress] Different starsWe spoke on FB and you said to delete this post from WP – but I don’t know how to!
Feel free to ignore it though, obviously!Sorry – I keep thinking too much – if I have a way of automating the post-id, I’m guessing I might end up back where I started, with the shortcode taking its value form the page its sitting on, rather than the one it was originally attached to…?
OK – so I’ve just been playing around and I’ve realised that I can add postid=26 to the short-code and I get the right one – so my question is this…
Can you think of a way that I can automate this, so that I don’t have to manually insert the postid on every post that I want to rate?
Thanks!
JKHi Dario.
It’s an external plugin called Related Posts By Taxonomy – and I’m using tags.But yes – I guess I need a way to associate the shortcode with the post-id of the post where it was created rather than the one where it is sitting.
Is there something I can add to the [yasr_overall_rating size=”medium”] to be more specific about which post-id it relates to?
Thanks.
Jason KHi again.
Yes – I’ve noticed that rogue “> but I don’t know what it is or where it was generated so I don’t know what caused it or how to get rid of it.I’ve since noticed that the problem occurs only when I use the short-code in a widget, but there’s nothing wrong with the home-page if the short-code is not in the post-title.
So the “> is generated (and the images misplaced) when the YASR short-code is used in the post title and when that post features in a widget.
The short-code works in every other situation and the widgets work in every other situation, so it seems to be a problem with having the short-code in the widgets in the Awaken theme.
I’ll ask the theme developers if they have any ideas!
Thanks.
Jason KOK – I’ve been playing around and I found both some a plugin and a code (add_filter(‘the_title’, ‘do_shortcode’); that allow me to get the stars into the title.
HOWEVER
While it works on the page:
https://whatsworthseeing.com/mission-impossible-rogue-nation-review/
And it works on the archive pages (I’ve only added shortcode to 3 posts so far):
https://whatsworthseeing.com/category/reviews/film-review/
But, while it works on the slider and the stars do appear by each thumbnail, the home-page itself is thrown off kilter. Can you think why this might be? Could be it be something in the YASR code or would it be a problem with the theme?
Hi again,
Thanks for this.Unfortunately, I don’t know enough about coding to know what to do with this.
I’ve built my website using the most appropriate plugins I can find to adapt the theme.I’m not sure what it means to “get the post id outside the loop” – I’m not even sure what the loop is! I had a quick skim through the link you attached, but I think you need to understand more about coding for it to make sense.
Is
echo do_shortcode( ‘[yasr_overall_rating]’ );
something else that I need to paste somewhere – and if so, where?
Or is it not that simple?
Thanks.
JKHi again Dario.
So – I’ve added that code to line 34 of the shortcode functions file.
But I don’t understand how this code can help me get the stars visible on my home-page or archive pages – if I paste [yasr_overall_rating] into the post titles or excerpt, it just reproduces the shortcode.
Having put that code into the file as you suggested, what should I do next?
Thanks.
Jason KI think my hosting provider has fixed the problem so I can now try again.
To be clear – is this where the new code goes:extract( shortcode_atts (
array(
‘size’ => ‘large’,
‘postid’ => FALSE
), $atts )
);
global $post;
$postid = $post->ID;if(!$postid) {
$overall_rating=yasr_get_overall_rating();
Oh no.
I’m having a bit of a crisis.
I saw your message first on email and pasted it into the functions editor, but on email, it appeared like this:global $post;
$postid = $post->ID;Now, I cannot access my website – neither the public facing pages nor the dashboard – as every page I attempt to go to returns this message:
Parse error: syntax error, unexpected ‘&’ in /home/ukscreen/public_html/whatsworthseeing.com/wp-content/plugins/yet-another-stars-rating/lib/yasr-shortcode-functions.php on line 35
I tried to delete the addition, with the &, but I cannot revive the website – any ideas?
I have just noticed an update and it now appears to be working.
If that was for me, thank you!
If not – thank you anyway!
JKThinking about it – the only elements to appear on the home page are the image (we can’t superimpose), the excerpt (can’t read the short-code) and the title – is there any way to get the post title to display the star rating?
JK
Hi Dario.
1. My home page displays manual excerpts – so I’m guessing the short-code doesn’t work with that? Does it work in archive pages only if you use the automatic excerpt that uses part of the content?
2. Oh well. Thanks.
In that case, if the manual excerpt can’t interpret the short-code and the stars can’t be superimposed over the photos, can you think of any other way that I might be able to get the star ratings to appear on the home page?
Thanks.
Jason K