hrustgurd
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Can’t get value from the_title();Thank you very much! I tried this function, but somewhere I made a mistake and looked further for other variants.
Success and health!Forum: Fixing WordPress
In reply to: Can’t get value from the_title();I can add that when the_title(); substituted for ’14-103-001′, the title is displayed on 2 string, but is not processed further by the code.
I find this code in foogallery.js, but I don’t know how I can print “self.items.length” at a specific location on the page.
construct: function(album, element, options){ var self = this; self.album = album; self.$el = _is.jq(element) ? element : $(element); self.opt = _obj.extend({}, _.StackAlbum.Pile.defaults, options, self.$el.data()); self.title = self.opt.title; self.items = self.$el.find('.fg-pile-item').map(function(i, el){ return new _.StackAlbum.Item(self, el, { index: i }); }).get(); self.$cover = $('<div/>', {'class': 'fg-pile-cover'}).append( $('<div/>', {'class': 'fg-pile-cover-content'}).append( $('<span/>', {'class': 'fg-pile-cover-title', text: self.opt.title}), $('<span/>', {'class': 'fg-pile-cover-count', text: self.items.length}) ) ); self.top = 0; self.left = 0; self.isExpanded = false; },And I find this code, but because of “->” I can’t print on page:
<span class="fiv-count-total"><?php echo $current_foogallery->attachment_count(); ?></span>Thank you fot attention.
This is a gallery page, including the right menu:
http://bs.russiancaps.ru/dvfo/reg25/25-04/
Viewing 4 replies - 1 through 4 (of 4 total)