shortcode

Nesting [su-column] inside [row] to get them to align neatly

女生的网名这么多〃 提交于 2019-12-12 06:39:26
问题 i built a page to display content using columns stacked on top of each other (with shortcodes ultimate) [su_column] content [/su_column] [su_column] content [/su_column] [su_column] content [/su_column] <p> content </p> [su_column] content [/su_column] [su_column] content [/su_column] [su_column] content [/su_column] <p> content </p> [su_column] content [/su_column] [su_column] content [/su_column] [su_column] content [/su_column] <p> content </p> it would constantly misalign, easily solved

Add image to webpage which uses hugo framework

微笑、不失礼 提交于 2019-12-12 05:11:51
问题 I want to post an image onto my blog (yes that simple!) My website is hosted on GitLab Pages and uses the Hugo framework (v0.23). I forked my webpage from here, https://gitlab.com/pages/hugo (thus my blog folder structure is the same). My content publishes fine and is stored here: home/content/post I created a folder which stores images here: home/content/post/images When I insert an image into a post the image won't publish. I've tried using the relevant short code in the post (below) with

Accordion panel in wordpress shortcode is not collapsing with custom post

百般思念 提交于 2019-12-12 02:37:19
问题 Accordion panel not collapsing with shortcode in custom post type. I can not add 'collapse class' in the accordion. It may be the issue in this case. jQuery(document).ready(function($){ $(".panel-group .panel:first-child .panel-heading").addClass("active"); $(".panel-group .panel:first-child .panel-collapse").addClass("in"); }); This is the function I have in functions.php of my theme: function acordian_shortcode( $atts ) { extract(shortcode_atts(array( 'count' => '3', 'id' => '1', ), $atts )

How to make wordpress shortcode

末鹿安然 提交于 2019-12-12 02:27:53
问题 I have this code to show all post of category and thumbnail for 1st post of them. <?php $recent = new WP_Query(); ?> <?php $recent->query( 'cat=1&showposts=5' ); ?> <?php $is_first_post = true; ?> <?php while( $recent->have_posts() ) : $recent->the_post(); ?> <ul> <li> <?php if ( $is_first_post && has_post_thumbnail() ) { the_post_thumbnail(); $is_first_post = false; } ?> <a href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a> </li> </ul> <?php endwhile; ?> but i want show this using

Shortcode output always showing at top of custom template

ぃ、小莉子 提交于 2019-12-12 01:39:11
问题 my shortcode output always appear on the top of my custom template. custom template $tag= 'the_content'; remove_all_filters( $tag); $postid = get_the_ID(); $post = get_post($postid); $content = do_shortcode($post->post_content); ob_start(); echo $content; $result = ob_get_contents(); ob_end_clean(); return $result; custom shortcode function signupform_shortcode( $atts ) { extract( shortcode_atts( array( 'socialmkt' => 'aweber' ), $atts ) ); if($socialmkt == 'aweber'){ if($display == 'popup')

Wordpress creating shortcode with custom value

你离开我真会死。 提交于 2019-12-12 01:24:50
问题 Hello I have created a simple shortcode to display an image devider. added this to my functions php: add_shortcode( 'divider', 'shortcode_insert_divider' ); function shortcode_insert_divider( ) { return '<div class="divider"></div>'; } this is the css: .divider { width: 100%; height: 55px; background-image: url("http....") } so this is the shortcode: [divider] Now i'd like to define a different Background image for each time i use the shortcode. How can i implement something like: [divider

How to add woocommerce-pagination and woocommerce-ordering dropdown to custom shortcode

二次信任 提交于 2019-12-11 17:50:39
问题 I've created a custom shortcode to display products with a minimum stock amount and would like to add pagination to the results as well as calling the woocommerce-ordering dropdown to be displayed on the page. Here's the shortcode: // Minimum Stock Shortcode add_shortcode( 'minimum_stock', 'minimum_stock_shortcode' ); function minimum_stock_shortcode( $atts ) { global $woocommerce_loop; // Attributes $atts = shortcode_atts( array( 'limit' => '40', 'columns' => '5', 'orderby' => 'title',

Create shortcode in Wordpress that disables wpautop() on wrapped content?

删除回忆录丶 提交于 2019-12-11 17:36:07
问题 Looking to place a graphic on the same line/row as an h3 title like this: <h3 style="display:inline;">Graphic Advantage</h3><img style="max-width: 50px; width: 100%;" src="https://sgdesign.com/images/SGDadvantage.png" alt="SGD Advantage" /> First I make the h3 display = inline so it only occupies it's actual width rather than the full row. I could float the h3 and the graphic left and then do a clearfix but it seems excessive. The goal is to simply place both the h3 and small graphic on the

Output content of WordPress Shortcode in text and footer

空扰寡人 提交于 2019-12-11 16:58:01
问题 I'm using a custom WordPress shortcode to add a modal to my content. The content of the modal is based on a Custom Post Type. The shortcode looks like this: [term value="Custom Link Title" id="123"] The value="" argument is for the modal link in the content. The id="" is the ID of the Custom Post Type. Inside the modal dialog window I display the content from the Custom Post Type based on it's ID. The problem is, that the link and the modal dialog are outputted togehter. And because of the

WordPress: Calling a shortcode for a value in a different shortcode

本秂侑毒 提交于 2019-12-11 16:47:50
问题 I'm very new to this, so please go easy on me if this is a dumb question. I am building a site with events manager and geo my WordPress plugins. I want a user to be able to input their autofill location (via GMW) and have the calendar in EM output only events a certain distance from that location. I have already gotten (with handholding) to a point where I have a shortcode that spits out the coordinates of the location entered. The EM full calendar shortcode takes an attribute called 'near'