PHP Code per Shortcode
-
At the moment I edited the Template file and added the PHP Code there. It works fine, but if I want to change some text, I have to edit the Template File…
How can I use a Shortcode What PHP Code in the functions.php I have to ad, that I can use?
The two blocks of code I`m using at the moment in the Templatefile:<?php $argsevent = array( 'timespan' => 10000, 'date_format_1' => 'd. F Y', 'date_format_2' => 'd. F Y', 'html_list_v1' => '%DATE%: <a href="%URL%">%TITLE%</a>', 'html_list_v2' => '<a href="%URL%"><span style="color: #DDD;">%DATE% </span> %TITLE%</a>', 'html_list_v3' => '%DATE% bis %ENDDATE%: <a href="%URL%">%TITLE%</a>', 'html_list_v4' => '<a href="%URL%">%DATE% (multiday!!!)%TITLE%</a>, 'max_events' => 0, ); rs_event_list($argsevent); ?>and
<?php query_posts('category_name=featured'); ?> <?php // Start the Loop. while ( have_posts() ) : the_post(); // Include the page content template. get_template_part( 'content', 'page' ); endwhile; ?>The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘PHP Code per Shortcode’ is closed to new replies.