kokoruz
Forum Replies Created
-
Interesting discovery. My comment above deals with a localhost WAMP installation. I am never prompted to activate my account via the button to connect me to wordpress.com but I just tried the same plugin on an external web server and the plugin prompted to connect to wordpress.com to finalize the installation.
Any ideas why on my WAMP setup it won’t work but on my external server it works as expected?
Forum: Plugins
In reply to: [Contact Form 7] Check Box ValueI feel silly. The pipe worked just fine. I was confused why the value in the html displayed the way it did but it processed the form with no issue.
Thank You.
If you have any insight on replacing the ‘—‘ for something more descriptive please let me know. I looked through the website for answers but did not find anything.
Thanks Again!!!
Forum: Plugins
In reply to: [Contact Form 7] Check Box ValueThanks so much for that info but I can’t seem to make this work.
I have the following,
[checkbox Newsletter "Sign-up for our Newsletter|Opt In"]
and it generates the following code
<span class="wpcf7-list-item"><input type="checkbox" name="Newsletter[]" value="Sign-up for our Newsletter"> <span class="wpcf7-list-item-label">Sign-up for our Newsletter</span></span>
You can see it’s not giving the correct value of ‘Opt In’
I applied this same pipe declaration to a drop down box for US States
[select* Location include_blank "Alabama|AL" "Alaska|AK" "Arizona|AZ" "Arkansas|AR" "California|CA" "Colorado|CO" "Connecticut|CT" "Delaware|DE" "District Of Columbia|DC" "Florida|FL" "Georgia|GA" "Hawaii|HI" "Idaho|ID" "Illinois|IL" "Indiana|IN" "Iowa|IA" "Kansas|KS" "Kentucky|KY" "Louisiana|LA" "Maine|ME" "Maryland|MD" "Massachusetts|MA" "Michigan|MI" "Minnesota|MN" "Mississippi|MS" "Missouri|MO" "Montana|MT" "Nebraska|NE" "Nevada|NV" "New Hampshire|NH" "New Jersey|NJ" "New Mexico|NM" "New York|NY" "North Carolina|NC" "North Dakota|ND" "Ohio|OH" "Oklahoma|OK" "Oregon|OR" "Pennsylvania|PA" "Rhode Island|RI" "South Carolina|SC" "South Dakota|SD" "Tennessee|TN" "Texas|TX" "Utah|UT" "Vermont|VT" "Virginia|VA" "Washington|WA" "West Virginia|WV" "Wisconsin|WI" "Wyoming|WY"]
and this did not work as well. What am I doing wrong?Lastly is it possible when using the include_blank option to assign it some text other than ‘—‘ something like select a state or location?
<option value="">---</option><option value="Alabama">Alabama</option><option value="Alaska">Alaska</option>
Thank You!
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueJust wanted to say thank you. Your ‘html_entity_decode’ info and some output buffering allowed me to finish writing my shortcode.
I’m going to keep my eye on your plugin for future use.
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueI was curious what did you do to the plugin to get passed the original ampersand issue that I first posted about? I wrote a shortcode and it worked fine but I could not get passed the ampersand issue and when I was researching a solution is when I found your plugin.
<?php /** * POS Short Code **/ add_shortcode( 'pos_list', 'pos_listings' ); function pos_listings($atts, $content = null) { extract(shortcode_atts( array( 'school' => '', 'cluster' => '', ), $atts )); $args = array( 'post_type' => 'programs', 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'school', 'value' => $school, 'compare' => '=' ), array( 'key' => 'cluster', 'value' => $cluster, 'compare' => '=' ) ) ); $the_query = new WP_Query( $args ); ?> <?php if( $the_query->have_posts() ): ?> <ul> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endwhile; ?> </ul> <?php endif; ?> <?php wp_reset_postdata(); } ?>
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueI appreciate you fast responses and I’ll have to look into that raw plugin because I am having a hell of a time with formatting.
In text view I enter the code like this
<ul>[loop type="pos" field="school" value="BGHS" field_2="cluster" value_2="Architecture & Construction" allow="<a><li>"]<li><a href="[content field='url']">[content field="title"]</a></li>[/loop]</ul>
and when I toggle between visual and text it turns into this
<ul> <ul>[loop type="pos" field="school" value="BGHS" field_2="cluster" value_2="Architecture & Construction" allow="</ul> </ul> <ul> <li><a>"]</a></li> <li><a href="[content field='url']">[content field="title"]</a></li> <li>[/loop]</li> </ul>
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssuePHP Version 5.3.27
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueI was digging through the menus within your plugin and I may have discovered something. Under
See an overview of your site’s content structure at: Dashboard -> Content
The shortcode for [loop] has the following warning:
Warning: get_class() expects parameter 1 to be object, array given in /home/website/public_html/dev-site/necss3/wp-content/plugins/custom-content-shortcode/includes/ccs-content-overview.php on line 462
Loop_Shortcodeas well as the shortcode for [url]
Warning: get_class() expects parameter 1 to be object, string given in /home/website/public_html/dev-site/necss3/wp-content/plugins/custom-content-shortcode/includes/ccs-content-overview.php on line 464
urlShortcodeForum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueThe ampersand issue is no more ?? Thank You!
Unfortunately I have discovered something new. Empty Paragraph tags are being added around the processed shortcode.
Here is my shortcode as it appears in the Content Editor
<ul> [loop type="pos" field="school" value="BGHS" field_2="cluster" value_2="Architecture & Construction"] <li><a href="[content field='url']">[content field="title"]</a></li> [/loop] </ul>
Here is an example of my rendered html
<ul> <p></p> <li><a href="https://www.website.com/dev-site/necss3/?pos=46-0000-construction-trades-general">46.0000 - Construction Trades, General</a></li> <p></p> <li><a href="https://www.website.com/dev-site/necss3/?pos=15-1301-drafting-and-design-technologytechnician-general">15.1301 - Drafting and Design Technology/Technician, General</a></li> <p></p> <li><a href="https://www.website.com/dev-site/necss3/?pos=47-0201-heating-air-conditioning-ventilation-and-refrigeration-maintenance">47.0201 - Heating, Air Conditioning, Ventilation and Refrigeration Maintenance</a></li> <p> </p></ul>
Forum: Plugins
In reply to: [Custom Content Shortcode] Ampersand (&) IssueI am filtering courses from multiple High Schools.
This code will note work
[loop type=”programs” field=”school” value=”BGHS” field_2=”cluster” value_2=”Education & Training”]
but this code does
[loop type=”programs” field=”school” value=”BGHS” field_2=”cluster” value_2=”Finance”]
when the cluster/course does not include the & everything filters correctly.
Thoughts?
Thanks!
Forum: Fixing WordPress
In reply to: Short Code Variable Not Being ReadI’ve tried to study and implement you help. My Page has the following shortcode and it ignores it
[pos_list school=”BGHS” cluster=”Architecture & Construction”]
but if I replace
‘value’ => $school,
‘value’ => $cluster,with
‘value’ => ‘BGHS’,
‘value’ => ‘Architecture & Construction’,it works perfectly. How do I get my variables from my shortcode to read into the function. Scratching my head? Started reading about the output buffering to catch them but to be honest I don’t really understand it completely.
<?php /** * POS Short Code **/ function pos_listings($atts) { extract(shortcode_atts( array( 'school' => '', 'cluster' => '', ), $atts ) ); $args = array( 'post_type' => 'programs', 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'school', 'value' => $school, 'compare' => '=' ), array( 'key' => 'cluster', 'value' => $cluster, 'compare' => '=' ) ) ); $the_query = new WP_Query( $args ); ob_start() ?> <?php if( $the_query->have_posts() ): ?> <ul> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endwhile; ?> </ul> <?php endif; ?> <?php wp_reset_postdata(); $return = ob_get_clean(); return $return; } add_shortcode( 'pos_list', 'pos_listings' ); ?>
Forum: Fixing WordPress
In reply to: Short Code Variable Not Being ReadThanks for your response. Couple questions before I jump in. Doesn’t this example in the Codex use upper case and spaces for the Key? https://codex.www.ads-software.com/Custom_Fields
I am very new to working with custom fields so I want to make sure I understand what your sharing with me.
Also as I was working when I would manually add the $school and $cluster content into the $args = array (instead of pulling those variable from my shortcode that I could not get to work) it would filter my posts like I wanted and as I have a lot of content to filter using the shortcode seemed the most efficient way to accomplish this.
Please let me know about the lowercase and spaces and any other advise or help is greatly appreciated.
Thank You!
Forum: Plugins
In reply to: [jQuery Responsive Select Menu] Add Custom ClassChoosing a different name for each menu.
Forum: Plugins
In reply to: [jQuery Responsive Select Menu] Add Custom ClassCan you give the menus different names with a coma as well, ie., 1 menu is listed as Navigation and the other is listed as Services?
Forum: Plugins
In reply to: [jQuery Responsive Select Menu] Add Custom ClassWondering if it’s possible to create 2 of these if I have 2 menu sections? Currently is appears to be able to only handle 1 menu.
Any future plans for this?
TY ??