我正在使用一个名为wp-like-lock的插件。它有一个集成的短代码import java.awt.*;
import javax.swing.*;
public class LayoutManagerExample {
JFrame frame;
JPanel pane1, pane2, pane3;
JTextField field1, field2, field3;
JTable table;
JScrollPane jsp;
LayoutManagerExample() {
frame = new JFrame("LayoutManagerExample");
pane1 = new JPanel();
pane2 = new JPanel();
pane3 = new JPanel();
field1 = new JTextField(10);
field2 = new JTextField(10);
field3 = new JTextField(20);
table = new JTable();
jsp = new JScrollPane(table);
pane1.setLayout(new FlowLayout());
pane2.setLayout(new GridLayout(1, 2));
pane3.setLayout(new FlowLayout());
pane1.add(field1);
pane1.add(field2);
pane2.add(jsp);
pane2.add(field3);
pane3.add(new JLabel("Something else"));
frame.add(pane1, BorderLayout.NORTH);
frame.add(pane2, BorderLayout.CENTER);
frame.add(pane3, BorderLayout.SOUTH);
frame.pack();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}
public static void main (String args[]) {
new LayoutManagerExample();
}
}
。如果我使用如下所示,它在帖子中工作正常:
[wp-like-lock]
但我想整合模板。并使用如下:
[wp-like-lock]content[/wp-like-lock]
但现在它无法正常工作。它在页面上显示如下:<?php echo do_shortcode("[wp-like-lock]"); ?>
content
<?php echo do_shortcode("[/wp-like-lock]"); ?>
我做错了什么?我也试过单引号