Plugin Author
Vova
(@gn_themes)
Hi @arch1mede,
try the following:
[su_posts template="templates/single-post.php" id="357" posts_per_page="1"]
NICE!!!! Thanks soooo much. Been looking for an add on to do this then it occurred to me that I could handle what I was looking for with shortcodes.
Ohh and I didn’t know this but fun fact, if you don’t put in the right id you kill your whole wordpres site or at least make it all empty.
Plugin Author
Vova
(@gn_themes)
if you don’t put in the right id you kill your whole wordpres site or at least make it all empty
This should never happen. See my test: https://i.imgur.com/OO6NU49.png
I used 357 as a fake reference and I forgot to update it when I published the post, my site took longer than usual to display and came back blank. When I went back in the admin page and put in the right id, it brought up the website.
Anyways, can you not use shortcodes in the title?
Plugin Author
Vova
(@gn_themes)
Ok, how does one use this properly? Sorry I am really new to this.
add_filter( ‘single_post_title’, ‘do_shortcode’ );
Ohhh I see, I would have to add that to my functions.php file.
Thank you, totally works and really easy. Took me 2+ years to find something that works.