Forum Replies Created
-
AuthorPosts
-
November 3, 2013 at 1:35 pm in reply to: Latest Post Doesn't Appear on Top – Magazine Pro Theme – WordPress 3.7.1 #70708
eurasiarc
MemberResolved
It turns out that the latest post belongs to a category that was placed below the category of the previous post in the widgets for this division of the blog layout.
eurasiarc
MemberThis issue has been resolved by a timely clarification on a related thread.
It turns out that the real (short and simple) shortcode for the WP Cycle theme that works once shortcoding has been enabled on the functions.php page is simply:
[wp_cycle]
A great little shortcode which illustrates the true meaning of shortcode.
A line to this effect might be added to the WP Cycle tutorial saving beginners a lot of time.
Thanks to the developers of WP Cycle and forum support professionals!
eurasiarc
MemberThanks very much for the very simple clarification.
I have used similar simple shortcodes used with other plugins like responsive video, but was confused by the technical explanation given in the WP Cycle tutorial where what is meant by shortcode is not necessarily clear to the non developer. I think there needs to be an additional paragraph or sentence in the tutorial specifying exactly what the shortcode for WP Cycle should be. The tutorial includes an instance of the shortcode but inside a longer function statement.
The real short shortcode actually works! Beginners and non techs just need to know what it is.
Thanks again to you all and thanks to the developer of WP Cycle for a useful and attractive plugin.
eurasiarc
MemberThanks very much for getting back.
I have tried the original shortcode provided on the WP Cycle documentation and tutorial page.
I tried a number of modifications, but currently the widget has the exaxt shortcode that appears on this tutorial page.
This is the exact shortcode that has been pasted into the widget
add_action('genesis_header', 'wpcycle_slider_header_home');
function wpcycle_slider_header_home() {
if (is_home()) {
echo do_shortcode('[wp_cycle]');
}
}
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-a1K
*/This is exactly the shortcode that appears on this WP cycle documentation page.
The shortcode provided obviously needs to be modified so that it will appear properly when used in a text widget.
One can see the results on this blog where the shortcode has been pasted into a text widget. You will see that the widget has WP Cycle with rotating images but shortoding clutters the widget. Something has to be done so that the shortcode will disappear without WP Cycle also disappearing.
eurasiarc
MemberSUMMARY OF CODING PROBLEMS WITH USING WP CYCLE IN A TEXT WIDGET IN WORDPRESS 3.7.1
The instructions provided on this page need to be revised and adapted to each theme before they will function properly. How to do this is not obvious.
Regarding an attempt to follow these instructions for use with a blog using WordPress 3.7.1 and the Magazine Pro child theme, the following instructions were implemented to the letter.
1) The recommended php was pasted at the end of the theme’s functions.php page
2) The shortcode provided was pasted into the text widget.
This did not solve the problem entirely because parts of the shortcode itself appear in the tex widget instead of being hidden. The problem is how to get the shortcode hidden from view so that the widget displays only WP Cycle and does not have sections of code that clutters the layout.
There is something about text widgets in the current 3.7.1 version of WordPress or the shortcode itself that causes the shortcode to appear in the widget instead of WP Cycle. The shortcode provided does not work properly in the text widgets of WordPress and the Magazine Pro theme.
Please look at the site itself. All of the instructions provided have been followed to the letter and the shortcode has been entered verbatim into a text widget. It does not work.
Something needs to be done to modify and improve the shortcode so that what the shortcode is designed to do, ie present the WP Cycle images in a legible and uncluttered fashion without fragments of shortcode appearing in the text widget on the homepage.
A modification or revision of the shortcode that solves this problem is needed to make the shortocde and WP Cycle function properly in the Magazine Pro and probably other themes. There are clearly problems in the syntax of the shortode itself when it comes to using them with WordPress 3.7.1 and the Genesis based Magazine Pro theme which came out a few days ago. What is needed is for all of the coding to disappear from the text widget.
The instructions on the page provided need elaboration and revision.
http://globalanalystonline.com/wp/
After some clarifications, the instructions and the shortcode recommended on this page were all implemented exactly as recommended on the tutorial - documentation page on the use of the WP-Cycle plugin listed below. Shortcoding was enabled on the functions.php page and the shortcode provided was pasted into the text widget.
The shortcode and other coding recommended on the page above needs to be modified for it to work.
eurasiarc
MemberBoth of the conditions stated above were implemented and integrated yesterday into my blog which uses Magazine Pro theme.
1) The recommended php was pasted at the end of the theme's functions.php page
2) The shortcode provided was pasted into the text widget.
This did not solve the problem entirely because parts of the shortcode itself appear in the tex widget instead of being hidden. The problem is how to get the shortcode hidden from view so that the widget displays only WP Cycle and does not have sections of code that clutters the layout.
There is something about text widgets in the current 3.7.1 version of WordPress or the shortcode itself that causes the shortcode to appear in the widget instead of WP Cycle. The shortcode provided does not work properly in the text widgets of WordPress and the Magazine Pro theme.
Please look at the site itself. All of the instructions provided have been followed to the letter and the shortcode has been entered verbatim into a text widget. It does not work.
Something needs to be done to modify and improve the shortcode so that what the shortcode is designed to do, ie present the WP Cycle images in a legible and uncluttered fashion without fragments of shortcode appearing in the text widget on the homepage.
A modification or revision of the shortcode that solves this problem is needed to make the shortocde and WP Cycle function properly in the Magazine Pro and probably other themes. There are clearly problems in the syntax of the shortode itself when it comes to using them with WordPress 3.7.1 and the Genesis based Magazine Pro theme which came out a few days ago. What is needed is for all of the coding to disappear from the text widget.
The instructions on the page provided need elaboration and revision.
http://globalanalystonline.com/wp/
After some clarifications, the instructions and the shortcode recommended on this page were all implemented exactly as recommended. Shortcoding was enabled on the functions.php page and the shortcode provided was pasted into the text widget.
eurasiarc
MemberI almost have WP Cycle working in a text widget using only this code:
echo do_shortcode('[wp_cycle]
<p>
However the code text continues to show up in the widget cluttering the layout.
I found a trick that gets the text of the shortcode to disappear from the widget and display only the WP Cycle Image display.
If you simply add
<form echo do_shortcode('[wp_cycle]
the unwanted code disappears and you see only WP Cycle.
However this destroys the theme layout and causes the main sidebar to float down to the bottom of the blog.
There must be some piece of code that will get the shortcode to work in a text widget without cluttering the display.
I would be very appreciative if anyone can explain exactly how this should be done.
I found the suggestion that adding the statement
<form
to any line of html, or shortcode will cause at least some of the unwanted code to disappear from the widget. It works for the use of WP Cycle in a text widget, but it causes other problems with the theme layout, shifting the sidebars to the bottom of the homepage.
eurasiarc
MemberThe shortcode has been added to a text widget, but the code itself continues to show up in the widget in addition to the WP-Cycle image changer.
eurasiarc
MemberThe problem is that there is no WP-Cycle widget with the Magazine Pro theme. The WP Cycle widget that was available in the Enterprise theme is no longer there.
I will keep looking to see if I can find it.
I just checked and with the enterprise theme WP Cycle is built into the theme itself and is not a widget. It is built into the header of the Enterprise theme.
There is no wp cycle widget in either theme unless there is a simple way to create one that works. As can be seen the WP Cycle shortcode that was added to a text widget shows up in the blog along with the WP Cycle itself.
eurasiarc
MemberSomething is causing both the code and WP Cycle to appear in the text widget.
Does anyone know how to get the code to disappear?
Thanks for any additional help.
eurasiarc
MemberI almost got this right.
I added a line to the functions.php file to enable shortcodes.
Then I added the text of the shortcode suggested on the page to which I was referred.
WP-Cycle is appearing in the text widget in which I added the code recommended. However there is something wrong with the phrasing or syntax used in the code I placed in the widget, because in addition to WP-Cycle which is indeed visible and functioning, there is some unwanted code that apppears above and below thw WP-Cycle Images.
How do i get the unwanted code to disappear from the widget so that only WP Cycle appears?
Here is the site where I am trying this.
http://globalanalystonline.com/wp/Here is the shortcode segment I copied and pasted from the how to page. Something needs to be edited out of this:
add_action('genesis_header', 'wpcycle_slider_header_home');
function wpcycle_slider_header_home() {
if (is_home()) {
echo do_shortcode('[wp_cycle]');
}
}
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-a1K
*/eurasiarc
MemberThanks again.
I do have the plugin installed and was using it with the Enterprise theme. The one thing I need to learn is how to add support for shortcodes in widgets. I haven't figured out how to do that yet. I would guess its some place in WP or Genesis's documentation. Maybe by the time you get back to me, I will have found it. I think I'm getting a bit closer to the critical mass for a breakthrough on this problem.
I'm going to see if I can enable support for shortcodes in widgets.
eurasiarc
MemberThanks for the latest. I figured this out. On my first look, I didn't see a good place in the functions file to place the code. The Enterprise theme has the code related to wp-cycle in the home.php page, not the functions.php page.
I just added the code sample to the functions.php page for the Magazine pro theme. It does cause wp-cycle to appear in the header of a blog using the theme.
I want wp cycle to appear in the home-top division for the theme, not the header, so some change in the coding of the recommended tag needs to take place in order to instruct wp-cycle to appear in the home-top division instead of the header. I tried some changes in the coding, but so far have not been able to get this to work.
The code suggested above causes wp-cycle to appear only in the header area. Also there is no padding between the images loaded into wp-cycle and the black header. It appears some additional modifications are needed such as an added spacer image to make this appear well in the Magazine Pro template.
Some additional changes to the suggested code need to be made before wp-cycle will appear in any area other than the header are for this theme.
The general principle for adding wp-cycle is there, but it takes additional changes in the theme to make it look good.
eurasiarc
MemberThanks for the tip.
I have been experimenting without success with adding to the hooks page and also trying to add a custom text widget.
So far its not workiong.
I am having trouble identifying the right page to edit in the new Magazine Pro theme used with Genesis.
The only pages available for editing in the WP themes editor are the css style page and pages called
theme--functions.php
landing-page.php
and
front-page.php
as well as styles.cssThe pages are named very differently from those of the Enterprise theme where I was able to locate the code integrating wp-cycle into the template.
Do you have any idea which of the above listed pages needs to be edited with the wp-cycle tag added?
Thanks for any additional tips.
eurasiarc
MemberThanks for the link to the page explaining the customization of WP cycle.
There are a couple of loose ends in the article that require further explanation.
The page gives alternatives for sites that use simple hooks and those that don't. All genesis sites used hooks.
The instructions are not clear on how to position wp cycle within the layout of a theme. There is a short line of code to place in a text widget, but it is not explained whether the widget code is sufficient or whether additional editing of function files is required or whether the alternative coding for themes that use or do not use simple hooks can be used on any blog and why.
I will experiment with this but unless the explanation addresses these unaddressed issues, it may be difficult to get wp-cycle working in the right layout division.
Will check this out and see if it works with the Magazine Pro Theme. I will try to create a wp-cycle widget that can be placed in the home top division of the Magazine Pro layout.
SUMMARY MAIN QUESTION:
Do you need to add code to the function files AND add aditional code to a text widget or is the short line of code suggested for the text widget sufficient for this purpose?
Thanks for any help with these questions.
-
AuthorPosts