Forum Replies Created
-
AuthorPosts
-
WOW THANKS!
So….
With the code added it seems to be working now.
(hurrah!)
1 – We have information in the loop-index.php child file
2 – The Theme Functions.php file seems to be working. Thanks if you would check through the code to make sure there is no conflicting information:CODE IN THE PHP FUNCTIONS:
<?php/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function custom_shortcode_func() {
ob_start();
echo “<span class=’post-meta-infos’>”;
echo “<time class=’date-container minor-meta updated’>”.get_the_time(get_option(‘date_format’)).”</time>”;
echo “<span class=’text-sep text-sep-date’>/</span>”;if ( get_comments_number() != “0” || comments_open() ){
echo “<span class=’comment-container minor-meta’>”;
comments_popup_link( “0 “.__(‘Comments’,’avia_framework’),
“1 “.__(‘Comment’ ,’avia_framework’),
“% “.__(‘Comments’,’avia_framework’),’comments-link’,
“”.__(‘Comments Disabled’,’avia_framework’));
echo “</span>”;
echo “<span class=’text-sep text-sep-comment’>/</span>”;
}if(!empty($cats))
{
echo ‘<span class=”blog-categories minor-meta”>’.__(‘in’,’avia_framework’).” “;
echo $cats;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}echo ‘<span class=”blog-author minor-meta”>’.__(‘by’,’avia_framework’).” “;
echo ‘<span class=”entry-author-link” ‘.avia_markup_helper(array(‘context’ => ‘author_name’,’echo’=>false)).’>’;
echo ‘<span class=”vcard author”><span class=”fn”>’;
the_author_posts_link();
echo ‘</span></span>’;
echo ‘</span>’;
echo ‘</span>’;
echo ‘</span>’;
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_meta’, ‘custom_shortcode_func’);function custom_shortcode_func2() {
ob_start();
echo the_category( ‘, ‘ );
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_category’, ‘custom_shortcode_func2’);function custom_tags_shortcode() {
ob_start();
the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_tags_shortcode’);November 21, 2016 at 11:40 am in reply to: Question about Transferring set up to our actual site #714758function custom_tags_shorcode() {
ob_start();
the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_tags_shorcode’);it seems the code is written incorrectly or should shortcode be spelt shorcode?
REVIEW:
______________________________________________
TAGS, CATEGORIES:
Visible in
Blog Page, Category PagesNOT visible in:
Post PagesHOW TO ADD? or WHAT have I missed in your instructions?
: )
––––––––––––––––––––––––––––––––––––––––––––––––Is it possible to add a Yoast Taxonomy Widget (would it work) with the Layout Builder?
My client wants two levels of Tags––––––––––––––––––––––––––––––––––––––––––––––––
I would like to take this opportunity to REALLY thank you for your patience and help. I used the “Layout Builder” with the posts because I wanted to have the full-width color bar above the sidebar and blog pages to keep with the websites design. This did not appear to be possible with the “Default Editor”. OR IS IT? I would suggest it be clearly stated that it is complicated to use the Layout builder with posts unless one is familiar with PHP. It would be great to add a step-by-step guide on how to do this in your documentation.
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Waiting to hear from you so I can finish this up.
Thanks again!
Dara
this is an image of a normal page with a full-width color barthis did not seem to work to show the TAGS unless we did something wrong.
The CATEGORIES is also still not showing or have I missed somethingWe created the folder on the server in the Enfold Child and followed your instructions:
#710134 REPLY.Here is the example page:
The DATE/COMMENTS/AUTHOR is there now thanks from before.
there is some progress : )
- This reply was modified 8 years ago by DaraEmerson.
OK – I will let you know in the next day hopefully. Thanks for keeping this window open.
: )Thanks I will in the next 2 days.: ) Dara
http://www.tcm-team.at/category/rezepte/
ok the above has date and comments: YESbelow is missing date and comments:
does adding them involve more PHP?WE ARE NEARLY FINISHED – YES!
thanks for all your help.
Dara- This reply was modified 8 years ago by DaraEmerson.
.html_elegant-blog .archive .post-entry .blog-author, .html_elegant-blog .archive .post-entry .comment-container + .text-sep {
display: none;
}Thanks for the CSS! This worked like a dream – getting somewhere in a way I can follow what is going on
Thanks Ismae!……
1 – Are you telling us to add the above code in the parent theme?
if so, what happens then with the updates? (I do not see numbered lines (line 232))
2 – We have a child theme set up for this with the following code in the functions.php:
can I add the code there?best regards,
Dara<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function custom_shortcode_func() {
ob_start();
echo “<span class=’post-meta-infos’>”;
echo “<time class=’date-container minor-meta updated’>”.get_the_time(get_option(‘date_format’)).”</time>”;
echo “<span class=’text-sep text-sep-date’>/</span>”;if ( get_comments_number() != “0” || comments_open() ){
echo “<span class=’comment-container minor-meta’>”;
comments_popup_link( “0 “.__(‘Comments’,’avia_framework’),
“1 “.__(‘Comment’ ,’avia_framework’),
“% “.__(‘Comments’,’avia_framework’),’comments-link’,
“”.__(‘Comments Disabled’,’avia_framework’));
echo “</span>”;
echo “<span class=’text-sep text-sep-comment’>/</span>”;
}if(!empty($cats))
{
echo ‘<span class=”blog-categories minor-meta”>’.__(‘in’,’avia_framework’).” “;
echo $cats;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}echo ‘<span class=”blog-author minor-meta”>’.__(‘by’,’avia_framework’).” “;
echo ‘<span class=”entry-author-link” ‘.avia_markup_helper(array(‘context’ => ‘author_name’,’echo’=>false)).’>’;
echo ‘<span class=”vcard author”><span class=”fn”>’;
the_author_posts_link();
echo ‘</span></span>’;
echo ‘</span>’;
echo ‘</span>’;
echo ‘</span>’;
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_meta’, ‘custom_shortcode_func’);- This reply was modified 8 years ago by DaraEmerson.
http://www.tcm-team.at/category/eintopfe/
Tags are missing : how to add?
Author is showing: how to remove ?http://www.tcm-team.at/blog/
Tags are missing : how to add?Is this clear?
- This reply was modified 8 years ago by DaraEmerson.
Within the POST the category/categories, share are missing as well
how to add these?- This reply was modified 8 years ago by DaraEmerson.
Dear Andy This is what is there already.
Either you or Yigit put this code in because when I tried the entire website disappeared.<?php
/*
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
*/function custom_shortcode_func() {
ob_start();
echo “<span class=’post-meta-infos’>”;
echo “<time class=’date-container minor-meta updated’>”.get_the_time(get_option(‘date_format’)).”</time>”;
echo “<span class=’text-sep text-sep-date’>/</span>”;if ( get_comments_number() != “0” || comments_open() ){
echo “<span class=’comment-container minor-meta’>”;
comments_popup_link( “0 “.__(‘Comments’,’avia_framework’),
“1 “.__(‘Comment’ ,’avia_framework’),
“% “.__(‘Comments’,’avia_framework’),’comments-link’,
“”.__(‘Comments Disabled’,’avia_framework’));
echo “</span>”;
echo “<span class=’text-sep text-sep-comment’>/</span>”;
}if(!empty($cats))
{
echo ‘<span class=”blog-categories minor-meta”>’.__(‘in’,’avia_framework’).” “;
echo $cats;
echo ‘</span><span class=”text-sep text-sep-cat”>/</span>’;
}echo ‘<span class=”blog-author minor-meta”>’.__(‘by’,’avia_framework’).” “;
echo ‘<span class=”entry-author-link” ‘.avia_markup_helper(array(‘context’ => ‘author_name’,’echo’=>false)).’>’;
echo ‘<span class=”vcard author”><span class=”fn”>’;
the_author_posts_link();
echo ‘</span></span>’;
echo ‘</span>’;
echo ‘</span>’;
echo ‘</span>’;
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_meta’, ‘custom_shortcode_func’);DO I ADD the following shortcode for adding Tags within a Post?:
function custom_shortcode_func2() {
ob_start();
echo the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_shortcode_func2’);Thanks!
- This reply was modified 8 years ago by DaraEmerson.
http://www.tcm-team.at/category/rezepte/gerichte-fur-morgen-mittags-oder-abends/
here!
font, color etc….Thanks!
A late THANKS for all your help
: )November 7, 2016 at 11:40 am in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #709118Thanks! The thread you sent me is confusing.
I will begin a new thread.
Again thanksbest regards,
DaraNovember 2, 2016 at 5:44 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707271Thanks
I am really trying to make my request clear.
Is it?(It would be great to have some step-by-step documentation to show people like me how to use the Layout Builder in the blog and retain options.+
OR to make it VERY clear that there are complications in choosing this route.)1 – how to remove the author, date, comments?
both WITHIN a blog page and in the main category or tag pages2 – do we paste the following into PHP file to see the TAGS?:
function custom_shortcode_func2() {
ob_start();
echo the_tags(‘‘.__(‘Tags:’,’avia_framework’).’ ‘);
$output = ob_get_clean();
return $output;
}
add_shortcode(‘the_post_tags’, ‘custom_shortcode_func2’);- This reply was modified 8 years ago by DaraEmerson.
November 2, 2016 at 4:17 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707203We do NOT want to see:
author, date and commentsWe WANT to see:
TAGS, CATEGORIES- This reply was modified 8 years ago by DaraEmerson.
November 2, 2016 at 4:02 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707187Thanks Yigit!
Now please excuse the ignorance:
You have pasted code into the functions PHP which will allow that we can see tags and categories in the individual post as well as in the main category pages?Here we need to see the tags (categories are visible)
here we can see “name” “comment” and”date” which we DO NOT WANT.
http://www.tcm-team.at/category/rezepte/zum-fruhstuck-oder-zwischendurch/
how to remove?[the_post_meta]
what does this do?Thanks!
- This reply was modified 8 years ago by DaraEmerson.
November 2, 2016 at 3:42 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707169thanks here is are the various logins
November 2, 2016 at 3:39 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707166oh yes excuse! in my haste I gave you the wordpress admin logins
give me 5 minutes to go into another computer
thanks!November 2, 2016 at 3:35 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707162All I want to do is to be able to add the tags and categories to the blog built in the Layout Builder.
…and delete the “name”, “post date”and “more” button
November 2, 2016 at 3:32 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707156*moved content into private content field*
- This reply was modified 8 years ago by Yigit.
November 2, 2016 at 3:29 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707152I cannot get in to remove the code and therefore I cannot give any login data either.
November 2, 2016 at 3:22 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707144Dear Andy, This is what I got when I followed the instructions to paste into the PHP File
THE ENTIRE WEBSITE IS NO LONGER THERE!
Parse error: syntax error, unexpected ‘<‘ in /home/.sites/47/site6089695/web/wp-content/themes/enfold-child/functions.php on line 11November 2, 2016 at 11:20 am in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #707048Thanks Andy where is the default Enfold folder?
October 19, 2016 at 4:30 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #701415So this:
Create a new php file, name it “post_meta_infos” then add code from the following pastebin. Save then you should see the new element named Post Meta in the advance layout builder: http://pastebin.com/qsXmPDQJ1 – first I create a
Enfold Child: Theme Functions (functions.php)2 – I name it
“post_meta_infos”? thread on Feb. 9.2016
how to name it “post_meta_infos”?OR?
DO I PUT “post_meta_infos” somewhere else?
3 – then I add the entire pastebin code in the child theme PHP?
4 – Then I save
5 – Then I add another code from thread feb 10?
or have I already gotten this wrong from the start ?
never dealt with PHP and if I had known that it would be so complicated I would never have used the builder.
Enfold did not make it clear that this would bring in so many unnecessary issues.: )
thanks for your reply
- This reply was modified 8 years, 1 month ago by DaraEmerson.
October 18, 2016 at 3:43 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #700697Dear Andy,
go to Enfold->Blog Layout->”Blog meta elements” and “Share links at the bottom of your blog post” and make your settings there.
thanks but this has been done since the beginning and it does not workmain BLOG page looks one way.
The individual POST or CATEGORY sections different.
They need to have the same look as the MAIN BLOG PAGE.
Where is it possible to change these?ALB?
What is this?Styles.CSS for Enfold Parent Theme
where can I acces this so I can change elements in the style sheet?PERMALINKS for BLOG POSTS:
we are just getting numbers rather than website name: category: post namethanks
daraOctober 5, 2016 at 2:52 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #695514THANKS AHEAD!
Set the design of BLOG to the Advanced Layout Builder.
the Author, Date and Comments is NOT showing on the MAIN BLOG PAGE
It does, however, show on the MAIN CATEGORY PAGES.
We do NOT want: Author, Date, Comments on any pageWe DO want:
BLOG POST CATEGORY
BLOG POST TAGS
to show on each blog postCATEGORIES show on the main category pages only
TAGS not
FACEBOOK etc… notIn addition
main BLOG page looks one way.
The individual POST or CATEGORY sections different.
They need to have the same look as the MAIN BLOG PAGE.
Where is it possible to change these?The SIDE MENU of the BLOG PAGE is different than the SIDE MENUs we have on the normal Website pages.
Why is that and where to change this?ALSO there is the word: “POST” showing on the upper left side of page when one clicks on a TAG. This we need to know how to remove.
http://www.tcm-team.at/tag/tonisiert-milz-qi/I have tried to find the Styles.CSS for Enfold Parent Theme which used to be visible to find elements to alter in our Child Stylesheet.
Cannot find it.PERMALINKS for BLOG POSTS: do not show properly
AGAIN THANKS! Best regards
September 28, 2016 at 12:10 pm in reply to: Blog: Tags not showing, Author and Date showing; Incorrect Permalinks #692564I found this but it seems no longer to apply as the builder is active in creating posts
Use the Layout Builder with any post typeOctober 23, 2014/in PHP Snippets, Tutorials /by Kriesi/Last Updated: October 23, 2014
The Advanced Layout Builder is by default only active for Pages and Portfolio items. If you want to use it with other post types (which are added by plugins for example) you can use the following code -
AuthorPosts