Forum Replies Created
-
AuthorPosts
-
October 10, 2023 at 5:25 pm in reply to: Automatically display author, excerpt and categories? #1422030
Update: managed to display categories with this simple shortcode:
function post_category_shortcode(){ global $post; return get_the_category_list($separator = ', ', $post->ID); } add_shortcode( 'sc_post_category', 'post_category_shortcode' );
Case closed!
October 10, 2023 at 4:21 pm in reply to: Automatically display author, excerpt and categories? #1422025Sorry Ismael, I am getting the following error message for categories:
“Your PHP code changes were not applied due to an error on line 2750 of file wp-content/themes/enfold/functions-enfold.php. Please fix and try saving again.
Cannot redeclare get_the_category_list() (previously declared in wp-includes/category-template.php:141)
”Line 2750 in my functions-enfold.php corresponds to line 230 in your linked get_categories_list code.
Thanks,
MagnusOctober 5, 2023 at 7:22 am in reply to: Automatically display author, excerpt and categories? #1421457For calling the functions with [sc_post_category] I would need to add the following to the end of the get_the_category_list or the get_the_terms function:
add_shortcode( 'sc_post_category', 'get_the_category_list' );
That would be important as I have my blog template set to call the function with that term.
Thanks,
MagnusSeptember 28, 2023 at 8:14 am in reply to: Automatically display author, excerpt and categories? #1420772Thank you Ismael, excerpt and author work nicely, the categories I am going to tackle later. Magnus
June 1, 2023 at 3:40 pm in reply to: Security Warning: ‘Connection not private, website might be impersonating….’ #1409282Please delete – SSL certificate expired, problem solved.
Thanks, that looks already good! Finally, we’d like to change the spacing between lines accordingly also for the excerpt we display on our topical post grids (see private link). Thanks again! mbosse99
February 16, 2021 at 11:49 am in reply to: Firefox issues: Page is slow and clunky and getting SSL message #1281299Excellent, thanks Rikard – that solved it! Magnus
February 14, 2021 at 11:34 am in reply to: Firefox issues: Page is slow and clunky and getting SSL message #1280393Hello:
I have the same issue here – how do I update favicon and header image to https? By simply uploading them once more?
Thanks a lot,
MagnusJanuary 7, 2021 at 11:41 am in reply to: Enfold 'Latest News' Widget: prevent duplicate listings on same page? #1270832Nope, this does not solve the problem, in fact it makes it worse: I now even have triplicates:
– 5 most current blog posts in slide on top
– same 5 now also mentioned in the blog posts section below
– and also liked in the Enfold ‘Latest News’ WidgetThanks,
Magnus- This reply was modified 3 years, 10 months ago by mbosse99. Reason: edited to solve formatting errors of Kriesi support site
November 26, 2020 at 9:36 pm in reply to: Enfold Comments – reduce SPAM: block certain words, links, HMTL code… #1263368Hi Victoria:
thank you. The thread you linked refers to the contact form, are you sure the solutions apply as well to the comments plugin which I am concerned aboutl?
Thanks,
Magnus- This reply was modified 3 years, 12 months ago by mbosse99. Reason: orthography
Excellent, thanks!
April 27, 2020 at 11:24 am in reply to: Blog Posts: Automatically display author, date, and categories? #1207475Excellent, thanks a lot – that solved it!
Dear Ismael:
when will the new native integration be active? I have the same ‘Instagram has returned invalid data’ issue as well.
Thanks
MagnusApril 20, 2020 at 2:42 pm in reply to: Blog Posts: Automatically display author, date, and categories? #1205495Hi Victoria:
a bit late but still – success – almost! I now can automatically include post title, date and author into a blog post. What does not work is the category – it always returns ‘Array’ as a display.
Here is the function I used – what is wrong? Note that I might have more than one category for a single post.
function post_category_shortcode(){ global $post; return get_the_category($post->ID); } add_shortcode( 'sc_post_category', 'post_category_shortcode' );
Thanks!
Magnus- This reply was modified 4 years, 7 months ago by mbosse99.
That’s it, thanks so much! Topic can be closed.
Magnus
Mike: that a lot. One thing: the disc is now
'inside'
, which looks a bit odd with blog titles that exceed one row. However, if I move the disc'outside'
they entirely disappear.Anyway to change that?
- This reply was modified 4 years, 7 months ago by mbosse99.
Thanks Mike, that’s it. Are there different list styles?
Best,
MagnusApril 15, 2020 at 11:20 am in reply to: Blog Posts: Automatically display author, date, and categories? #1203924Thanks Victoria:
I figured the following:
for Post Title:
function post_title_shortcode(){ global $post; return get_the_title($post->ID); } add_shortcode( 'sc_post_title', 'post_title_shortcode' );
For Post Date:
function post_date_shortcode(){ global $post; return get_the_date('Y-m-d', $post->ID); } add_shortcode( 'sc_post_date', 'post_date_shortcode' );
For Post Category:
function post_category_shortcode(){ global $post; return get_the_category($post->ID); } add_shortcode( ‘sc_post_category’, ‘post_category_shortcode’ );
Now what would I need for Post Author?
Thanks,
MagnusYes, works nicely, kindly close topic! Thanks so much!
Thanks! Now it works, and I modified the code such that the background image is gone on any mobile device, and also did the same for our contacts page.
Glad this works now!
Best,
MagnusIts like jinxed – no changes – background still shows.
Hi Rikard,
thanks, but there seems to be no change still. I opened the ‘contact us’ page on an iPhone which has never accesses the site so far (excluding thus cache issues), and the background image ist clearly still there:
https://snipboard.io/NZ5BqH.jpg
Thanks,
MagnusYes, see below in private box!
Thanks,
MagnusSorry, Rikard, not change!
Best,
MagnusMarch 30, 2020 at 8:53 am in reply to: Mobile: (i) search icon too low relative to burger and (ii) more space below? #1199016Excellent, this indeed solves it – thank you very much for the quick help over the weekend! Magnus
March 29, 2020 at 7:22 am in reply to: Mobile: (i) search icon too low relative to burger and (ii) more space below? #1198780Yes please – see private box! Magnus
- This reply was modified 4 years, 7 months ago by mbosse99.
March 28, 2020 at 10:38 am in reply to: Mobile: (i) search icon too low relative to burger and (ii) more space below? #1198535Hi Victoria:
that last code does not change anything: burger and search icon are still misaligned:
https://snipboard.io/JOaKxz.jpg
Thanks,
Magnus- This reply was modified 4 years, 8 months ago by mbosse99.
March 26, 2020 at 11:50 am in reply to: Mobile: (i) search icon too low relative to burger and (ii) more space below? #1197993Thanks, that indeed added the desired space. But the burger and the search icon are still misaligned:
https://snipboard.io/aLQRJS.jpg
Thanks,
MagnusExcellent, that solved it – thanks!
-
AuthorPosts