Peter Berger
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Archives widget not working after permalink changeYour monthly archive widget works fine now!? Could you tell me how you solved the issue? I have the same issue.
Thank you in advance!
Forum: Plugins
In reply to: [Custom Content Shortcode] loop with multiple taxonomiesDid you mean multiple terms from one taxonomy? Because in your code I see just one taxonomy (download_category).
Did you try this code?
[loop type=download taxonomy=download_category term=crm-de,whitepaper]
PeterForum: Plugins
In reply to: [Custom Content Shortcode] List all pages – separated by starting characterHi,
I think this code is what you looking for…
<ul> [pass list=A,B,C,D,E,F,G,H,I,J,K,l,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z] [loop type=page field=title start={ITEM} orderby=title order=ASC] [if first]<h3>{ITEM}</h3>[/if] <li>[field title-link]</li> [/loop] [/pass] </ul>
Peter
Good work, Eliot!
In my user case, the issue is solved. If I use
after=now
, the announcement will disappear exactly on the (local) time I have set.[loop type="announcement" field="expires" after=now orderby=field_num order=ASC] ... [/loop]
Thank you so much! Again!
Hello Eliot,
I had the same issue 8 months ago and I still have.
I avoid the issue with the following code, but it would be nicer if the date-time field compares to the date-time of my WordPress installation (the timezone in my general settings is set to “Amsterdam”).
[loop type="announcement" field="expire-date-time" after="2 hour" orderby="field_num" order="ASC"] ... [/loop]
This code works well in summer time (now), but after tonight I have to change “2 hour” to “1 hour”.
If I use
[today formar=r]
, the output is “Sat, 24 Oct 2015 21:17:00 +0000” (actual time). My website runs not on WAMP anymore, but at the server of my hosting provider.I hope you will find a way to solve the issue.
Thanks!
PeterForum: Plugins
In reply to: [Easy SwipeBox] Exclude single image from auto detectHi Leonardo,
Sorry for the late reply and thank you for your reply!
The past days I was looking for a solution and I think I found one. Now I can disable Swipebox on a single image by giving the
<a>
element the class “noswipebox”.I did it with this (jQuery) script:
$(document).ready(function(){ $(".noswipebox").removeClass("swipebox"); });
It only works when I enqueue the script after the scripts of your plugin, like this:
function my_scripts() { wp_register_script( 'my-custom-scripts', get_stylesheet_directory_uri() . '/js/custom-scripts.js', array('jquery-autodetect-swipebox-image'), '1.0.0', true ); wp_enqueue_script( 'my-custom-scripts' ); } add_action( 'wp_enqueue_scripts', 'my_scripts' );
Maybe you will add this function to your plugin or otherwise I hope it’s useful to someone else.
Forum: Plugins
In reply to: [Custom Content Shortcode] Confused about specifying URLsDid you try to rename the ACF field to something else? For example: external-link.
The field “link” is already in use for every post and renerates a link to the post.
Awesome! Thank you so much! You makes the possibilities endless! ??
I just made (another) donation. I hope you will keep up the good work!
Forum: Plugins
In reply to: [Custom Content Shortcode] How to Use Custom Content ShortcodeDid you try anything for yourself?
I’m not the one to answer the question where you have to put the code. Only you knows where you want to appear the content. If it’s on a specific page, then you have to put the code there. You also can put it in a widget.
If you want to put it in a template file, you first have to know how the templates work. For above example you can also make a archive template file for that term. Then you don’t need the loop code, just the fields.
Building websites means you have to try and test a lot to see how it works. If you do it on a test website, nobody can see it if it’s going wrong.
Forum: Plugins
In reply to: [Custom Content Shortcode] How to Use Custom Content ShortcodeHi Moses,
Did you read the documentation under Settings > Custom Content?
Did you try something like this?
[loop type=product taxonomy=product_tag term=cast-iron-housing orderby=title order=DESC list=true] [field title] [field image size=medium] [field image-title] [field image-caption] [/loop]
Forum: Plugins
In reply to: [Custom Content Shortcode] taxonomy templateHi draig,
I use it like this, maybe it will help you.
In taxonomy-my_tax_name.php I have this part:
<?php if (have_posts()) : while (have_posts()) : the_post(); get_template_part( 'content', 'my_tax_name' ); endwhile; endif; ?>
In content-my_tax_name.php I have this code:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php echo do_shortcode('[content type="template" name="my_post_name" field="html"]'); ?> </article>
I have a post type “template” where I added a field “html”. In the post named “my_post_name” I have a code like this:
<div class="my_tax_name-item" > [field title] [field image] ... </div>
Does it helps you?
Forum: Plugins
In reply to: [Embed Picasa Album] loop-picasa.php in child theme folderYes, it works very good! Thank you so much, Alexandr!
Forum: Plugins
In reply to: [Custom Content Shortcode] [protect][/protect] appears around scriptVersion 2.7.3 resolved it! ??
Thanks again, Eliot!
P.S. Your plugin makes building websites so much fun! If I ever could do anything for you, please let me know!
Forum: Plugins
In reply to: [Custom Content Shortcode] [protect][/protect] appears around scriptThank you for the update, Eliot!
Unfortunately it’s not really resolved. Now appears
[direct][/direct]
(not twice) in place of[protect][/protect]
around<script>...</script>
. And now not only when I get the shortcodes (with script) via a[content]
shortcode, but also when I have<script>
above shortcodes in a text-widget.The
[direct]
or[protect]
shortcode does not appear anymore when I put the [content] shortcode in the default content area of a page.Forum: Plugins
In reply to: [Custom Content Shortcode] [protect][/protect] appears around scriptThanks for the reply, Eliot.
No, in this case I don’t use
do_shortcode
. I use it in an “ad banner area” in the header of the theme I use.If I add the same “content-shortcode” to the regular content field of a page, then I see also the
[protect]
shortcode. The difference with the code in the “ad banner area” is that in the header appears a double shortcode ([protect][protect][/protect][/protect]
) and in the page content just one.