Forum Replies Created
-
AuthorPosts
-
December 15, 2014 at 6:09 pm in reply to: Changing menu colour on a post when no menu header image #368417
Works perfectly.
Thanks so much Yigit !!
December 15, 2014 at 5:43 pm in reply to: Changing menu colour on a post when no menu header image #368395This reply has been marked as private.Thank you for the reply Elliot, guess as its an MVP it will stay as it is for now!
I’ve started a new topic based on the results now !!
https://kriesi.at/support/topic/changing-menu-colour-on-a-post-when-no-menu-header-image/
Thanks for your help.
Darren
This reply has been marked as private.Gulp..
magazine_back.php
still works, where as
magazine.php.bck
doesn’t.Ok, so Ive figured this out now – with a little help form Elliot, thanks –
In \wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\magazine.php at line 586 I added the following shortcodes from the “Get Customer Field Values” plugin.
$output .= c2c_get_post_custom($entry->ID, 'suburb'); $output .= c2c_get_post_custom($entry->ID, 'city', ', ','<br/>');
Hope this helps somebody
D
- This reply was modified 10 years ago by darrenrhymer.
Hi
Sorry I should have explained. when I added some code to the file i didn’t see any change on the page so to check I was editing the correct file I removed it from the server, but still the magazine control shows data. (Even though the file is missing from the server)
Using Firebug and highlighting the control then searching for the div classes, they are only found in that file.
So why is the magazine still showing data when there is no file?
ThanksHi
Well Ive kind of figured it out.
I installed plug in “Get Custom Field Value”, and then in file includes/loop-index.php I added:
/* DJR++ */
echo c2c_get_custom(‘location’, ‘Location: ‘).”<br/>”;
echo c2c_get_custom(‘contact_number’, ‘Contact Number: ‘).”<br/>”;
echo c2c_get_custom(‘cost’, ‘Cost: $’).”<br/>”;
/* DJR– */This shows me these extra fields in my blog_post control.
However, I prefer the layout of the “magazine” control.
Where do i find the php file that controls this so i can add the code in there?
I think it should be /wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/magazine.php
but when i rename/remove this file the magazine control still shows my posts!!!
Thanks
DarrenHi
So after using Advanced Custom Fields and linking to these in Gravity Forms, the user can submit all the post fields on the front end form which creates a new Form entry and a new POST.
I want to read all the details from the POST and show on screen.
This MUST be possible otherwise there would be no point in Gravity Forms allowing you to fill these custom fields if you cant read the details from them.
Can somebody please tell me how to show all the fields from the post on a page one after the other like in blog_posts control.
Thanks
Darren- This reply was modified 10 years ago by darrenrhymer.
Hi Ismael
By default should the “Blog_post” show all posts or just approved posts?
Thanks
Hi
Just discovered that if user is EDITOR or ADMINISTRATOR then all posts will be shown in blog_post. If user is SUBSCRIBER then only approved posts will show.
CheersHopefully my suggestion is understandable and will help someone.
Well you can fudge it, hack it, or whatever you want to call it.
I need a login on my site so using plugin WP-Members, I set the site up with non dynamic menus (as they are) and then showed the source html in the browser
I grabbed the source from
<div id='wrap_all'>
to
</header>
which includes my menus etc.Paste this in to your enfold theme header.php overwriting the code between the above mention html tags. (Backup header.php first)
Then I added a function to the header.php (just below
wp_head();
) to see if i was logged in and return a html string with the correct classes, ids etc. Copied from the code just copied. I’ve only shown the login/logout menu not all the others i have.function my_login_status() { global $user_login; $logout = get_bloginfo('url')."/?a=logout"; $login = get_bloginfo('url')."/members-area/"; if (is_user_logged_in()) { $wpmem_login_status = " <li id='menu-item-83' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-3'> <a href='http://mysite.co.uk/login/?a=logout'><span class='avia-bullet'></span><span class='avia-menu-text'>Logout</span> <span class='avia-menu-fx'><span class='avia-arrow-wrap'><span class='avia-arrow'></span></span></span></a></li> "; } else { $wpmem_login_status = " <li id='menu-item-83' class='menu-item menu-item-type-post_type menu-item-object-page menu-item-top-level menu-item-top-level-3'> <a href='http://mysite.co.uk/login/'><span class='avia-bullet'></span><span class='avia-menu-text'>Login</span> <span class='avia-menu-fx'><span class='avia-arrow-wrap'><span class='avia-arrow'></span></span></span></a></li> "; }
Then where the actual menus appear in the html you just pasted in replace that with
<?php echo my_login_status(); ?>
So in essence you are hard coding your menus in the header. If you change a menu in the backend it wont have any effect.
Yeah its dirty, yeah its not a great solution, but hey, I cant believe login isnt already a part of such a great theme.
Cheers
n.b. if you require logout check then change you function href to have an extra / on the end
http://mysite.co.uk/login/?a=logout/
#bodge
- This reply was modified 10 years, 1 month ago by darrenrhymer.
-
AuthorPosts