Luigino
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Plugin: NextGEN Gallery] about tag [album id=x template=extend]Nevermind… solved! Thanks anyway… ?? I have to enter in the article to show the gallery. ??
Ciao,
LuigiForum: Plugins
In reply to: wp_enqueue_styleJust an update…..
I was looking and studying the file functions.wp-styles.php and I figured there’s a code that says:
$_handle = explode(‘?’, $handle);
this makes me to think I could write something like:
wp_enqueue_style(“OwnGallery?title=’owngallery’?alt=’alternate stylesheet'”,…)
but when I look inside class.wp-styles.php I see this:
echo apply_filters(‘style_loader_tag, ‘, “<link rel=’stylesheet’, href=’$href’ type=’text/css’ media=’$media’ />\n”, $handle);
so that makes me asking myself: how I can now reproduce a result like:
<link rel=’alternate stylesheet’ title=’alternate_gallery’ href=’alternate_gallery.css’ type=’text/css’ media=’screen’ /> ?
Any suggests?
Thanks to all!
Ciao, LuigiForum: Plugins
In reply to: [Plugin: Nextgen Gallery 1.2.1] Gallery not in a pageOK… I solved almost all stuffs…just it looks if I apply to the webpage an alternative CSS for high contrast, it is applied also to nextgen gallery, at least for background and description box.
BUT it doesn’t change for the title…. so, Alex, for easier application, is there a way to apply a separate alternate css so I can personalize differently for high contrast?…
Thanks,
LuigiForum: Plugins
In reply to: [Plugin: Nextgen Gallery 1.2.1] Gallery not in a pageOK I’ve found how, had to use this code:
<?php
if (function_exists(“nggShowAlbum”))
echo nggShowAlbum(1);
?>but since I have applied that code in a page template, I read somewhere I should put gallery.php and nggallery.css in my own theme directory then play with it but I’m not so sure if using the code as above would operate on those two files…even since on my site I can apply also an high contrast theme (css switching for accessibilty), and I would do the same with nextgen gallery…. anyone has a suggest about that for me?…
Thanks everyone!!
LuigiForum: Plugins
In reply to: [Plugin: Nextgen Gallery 1.2.1] Gallery not in a pageSometimes trying again I figure WP doesn’t recognize tags in the template file either I use [gallery id=1] or [album id=1]… I see the tag as like as just a typed text…maybe there’s a way to force WP to recognize the tag to call the plugin?…
Forum: Plugins
In reply to: [Plugin: Nextgen Gallery 1.2.1] Gallery not in a pageTo be more precise I’m asking that because:
if I have an album and I click on a thumbnail it wont show the picture…the URL goes to be: https://localhost/mysite/?page_id=95&album=1&gallery=1 and the appearance is the same as https://localhost/mysite/?page_id=95…
if I have a album with an empty gallery it doesn’t show the title of the album (using either [gallery id=1] and [album id=1] in the template file) and then the title of the gallery even it is empty but it shows the title of the gallery as the main title and the title of the gallery as first gallery…
Forum: Fixing WordPress
In reply to: Loop CycleYes now it works!!!
Even it was weird before because I followed an example from codex about using category_not_in=24… at least now it works with this code sample ??Thanks MichaelH ??
Forum: Plugins
In reply to: Robust Category Description / Sticky PostsHello Simonj,
I used your suggest to try my sticky post… BUT if I create two different sticky posts in the same page because I want to show them separately… like:
<div id=”boxmodel-stickypost”>
<?php
$category = get_the_category(”);
$cat_slug = $category[0]->category_nicename;
query_posts(array(‘Post 1’=> $cat_slug,) );
if (have_posts()) : while (have_posts()) : the_post();
echo ‘<div class=”category_description”>’; the_content(); echo </div>’;
endwhile;
endif; wp_reset_query();
?>
</div>
<div id=”boxmodel-stickypost”>
<?php
$category = get_the_category(”);
$cat_slug = $category[0]->category_nicename;
query_posts(array(‘Post 2’=> $cat_slug,) );
if (have_posts()) : while (have_posts()) : the_post();
echo ‘<div class=”category_description”>’; the_content(); echo </div>’;
endwhile;
endif; wp_reset_query();
?>
</div>
<div id=”boxmodelposts”>
… loop….
</div>I get in both sticky posts both Post 1 and Post 2 which are the titles of posts I put in category “category description”… why?
Forum: Plugins
In reply to: Sticky postsHello MichaelH.
I’m here again with sticky posts….
I installed a new fresh 2.7.1 wordpress with default theme and I created a category “xyz” then I created a sticky post related to that category.
then I put in index.php that query_posts(‘caller_get_posts=1’); BEFORE <?php if (have_posts()) : ?> (even tried also after) to make the sticky post not appearing in main page but when I click on that category’s link…. and it doesn’t disappear from main page…. why?….Thanks
LuigiP.S. about email I used category description as your suggest.
Forum: Plugins
In reply to: Sticky postsHello MichaelH!
Thanks for your answer….I read that page but it didn’t answered to my question… I knew already about the option about stickying/unstickying a post but my question was about to NOT show the sticky post of a category in the main page but only when I click on that category.
For example: normally when I enter in a site I would have a sticky general post (like in general category which is an universal category) to welcome to the website. Indeed when I click on a category that I listed in a sidebar because each category is an office I would hide the general category sticky and show the selected category sticky…. is there something like a function that manages that? like that “is_sticky()” one?…Thanks!!
Ciao
LuigiB.T.W. about categories: since I’d like to add an email to each office (category) is there a way to add another field or option to category because in a template I’d like to create a <select> that shows to the user the category listing with get_categories(parameters) and in the value the email address…and I was thinking for that way so when I create/delete an office (a category) I would have also to manage the email address… ?
Forum: Plugins
In reply to: Get data from different table than wp_post….Hi MichaelH!
Thanks for your answer!….
“I would look at using Custom Fields with posts.”….. You mean for example I write those offers like “A beautiful weekend in Prague, Europe – From Milan Malpensa, Departure: Feb. 14, 2009 – A beautiful package in prague for two days for only $400,00” in a post then use custom fields to insert Prague, Europe, Milan Malpensa, 02/14/09 to be used to search the post ?Luigi